Read the docs

Code injection in Jane open-api-3 generator via query parameter names

Priority MEDIUM 49CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

Jane's open-api-3 generator in janephp before 7.12.0 writes query parameter names unescaped into generated PHPDoc comments (CWE-116). A name containing a comment closing sequence ends the comment early and places attacker-controlled PHP in the class body. An attacker who supplies the OpenAPI document used for generation can run arbitrary PHP with the consuming application's privileges when the client is instantiated.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

Description from the CNA

Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, the Jane open-api-3 generator emits an OpenAPI query parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A query parameter name containing a PHPDoc closing delimiter can terminate the comment early and place attacker-controlled PHP in class-body position, including an __construct method that runs when the generated Client is instantiated. Exploitation requires generating a client from an attacker-influenced OpenAPI document and then using the generated SDK, and can execute arbitrary PHP with the consuming application's privileges. This issue is fixed in version 7.12.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00543 39th percentileScored 2026-11-30
Fix Fixed janephp (janephp): 7.12.0jane-php/open-api-3 (Packagist): 7.12.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
janephpjanephpbefore 7.12.07.12.0Patch availableCNA
—jane-php/open-api-3 (Packagist)before 7.12.07.12.0Patch availableGHSA-q8v2-3j4h-xg2p
  • janephp Vendorjanephp Affected before 7.12.0 Fixed in 7.12.0 Patch available CNA
  • jane-php/open-api-3 (Packagist) Vendor— Affected before 7.12.0 Fixed in 7.12.0 Patch available GHSA-q8v2-3j4h-xg2p

Remediation

Upgrade janephp and jane-php/open-api-3 to version 7.12.0, which fixes both packages.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

  • Fix · CNA janephp (janephp) Fixed in 7.12.0
  • Fix · GHSA-q8v2-3j4h-xg2p jane-php/open-api-3 (Packagist) Fixed in 7.12.0 Advisory →

Timeline

  1. 2026-11-18 Threatist record created from CVE-2026-63412
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-19 Alias added: GHSA-q8v2-3j4h-xg2p
  4. 2026-11-19 Fix available: Packagist/jane-php/[email protected] · GHSA-q8v2-3j4h-xg2p
  5. 2026-11-19 CVSS score added · GHSA-q8v2-3j4h-xg2p
  6. 2026-11-19 Weakness changed · GHSA-q8v2-3j4h-xg2p
  7. 2026-11-19 6 new references · GHSA-q8v2-3j4h-xg2p

References

  • TI-2026-94246 Code injection in Jane PHP open-api-3 generator via parameter descriptions CVSS 4.0CRITICAL 9.3
  • TI-2026-94249 SSRF and path traversal in Jane PHP $ref resolution CVSS 4.0HIGH 7.0
  • TI-2026-94248 Jane open-api-3 PHP code injection via header parameter name CVSS 4.0CRITICAL 9.3

Sources