CVE-2026-63413: Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-x9xr-53qx-9qcf
Summary
The jane-php/open-api-3 package contains a critical code injection vulnerability where unchecked header parameter names allow an attacker to break out of PHPDoc comments during code generation. Engineering teams using this library to generate SDKs from untrusted OpenAPI specifications must upgrade to version 7.12.0 or later.
Who is affected
This vulnerability allows for Remote Code Execution (RCE) when an application generates a client SDK using a malicious OpenAPI definition. By injecting a payload into a header parameter name, an attacker can prematurely close a PHPDoc block and inject arbitrary PHP methods into the generated client class, which then execute upon class instantiation.
Exploitability
The vulnerability is rated CRITICAL with a CVSS 4.0 vector indicating no special access or interaction requirements and low attack complexity. While the EPSS score is currently low at 0.003, the flaw allows for direct code execution, and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade jane-php/open-api-3 to version 7.12.0 or higher.
- Sanitize all OpenAPI source documents to ensure header names and descriptions do not contain arbitrary comment termination sequences like '*/'.
How to check your project
- Run 'composer show jane-php/open-api-3' to check the installed package version.
- Review composer.lock files for any entry of jane-php/open-api-3 below version 7.12.0.
Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Packagist | jane-php/open-api-3 |
>= 0, < 7.12.0 | 7.12.0 | composer require "jane-php/open-api-3:>=7.12.0" |
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | High |
| Integrity (vulnerable system) | High |
| Availability (vulnerable system) | High |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What is the root cause of the RCE?
The generator incorrectly emits header parameter names directly into PHPDoc blocks without escaping the '*/' sequence, allowing an attacker to escape the comment block and inject arbitrary PHP code into the generated class.
Does this impact all users of jane-php?
Only users who generate SDKs from OpenAPI specifications that are influenced by external or untrusted parties are at risk of this injection attack.
Is this vulnerability actively being exploited?
There is no evidence of active exploitation documented in the CISA Known Exploited Vulnerabilities catalog.
Original advisory description
References
- WEB https://github.com/janephp/janephp/security/advisories/GHSA-x9xr-53qx-9qcf
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-63413
- WEB https://github.com/janephp/janephp/pull/960
- WEB https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a
- PACKAGE https://github.com/janephp/janephp
- WEB https://github.com/janephp/janephp/releases/tag/v7.12.0
Source records: GHSA-x9xr-53qx-9qcf (OSV.dev) · EPSS by FIRST, 2026-11-22.