Jane open-api-3 PHP code injection via header parameter name
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 copies an OpenAPI header parameter name unchanged into the docblock of generated Client and Endpoint methods. A name containing a PHPDoc closing delimiter ends the comment early and places attacker-controlled PHP in class-body position, including a __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 SDK, and the injected code runs with the consuming application's privileges. The issue is rated CVSS 4.0 base score 9.3 (CRITICAL) and classified as CWE-94.
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 header parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A header 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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| janephp | janephp | before 7.12.0 | 7.12.0 | Patch available | CNA |
| — | jane-php/open-api-3 (Packagist) | before 7.12.0 | 7.12.0 | Patch available | GHSA-x9xr-53qx-9qcf |
- 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-x9xr-53qx-9qcf
Remediation
Upgrade jane-php/open-api-3 and janephp/janephp to version 7.12.0 or later. Only generate clients from OpenAPI documents you trust until the upgrade is applied.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
- Fix · CNA janephp (janephp) Fixed in 7.12.0
- Fix · GHSA-x9xr-53qx-9qcf jane-php/open-api-3 (Packagist) Fixed in 7.12.0 Advisory →
Timeline
- 2026-11-18 Threatist record created from CVE-2026-63413
- 2026-11-19 CISA SSVC decision points changed
- 2026-11-19 Alias added: GHSA-x9xr-53qx-9qcf
- 2026-11-19 Fix available: Packagist/jane-php/[email protected] · GHSA-x9xr-53qx-9qcf
- 2026-11-19 CVSS score added · GHSA-x9xr-53qx-9qcf
- 2026-11-19 Weakness changed · GHSA-x9xr-53qx-9qcf
- 2026-11-19 6 new references · GHSA-x9xr-53qx-9qcf
References
More janephp vulnerabilities
- 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-94247 Code injection in Jane open-api-3 generator via query parameter names CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-63413 · CVE Program
- CVE-2026-63413 · NVD
- FIRST EPSS
- GHSA-x9xr-53qx-9qcf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences