Packagist
CVE-2026-63413
Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- Severity
- Critical
- Published
- 19 Nov 2026
- Last changed
- 19 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 7.12.0
- Exploit chance
- 0.5% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Code injection (CWE-94)
- Also known as
- GHSA-x9xr-53qx-9qcf
- Sources
- OSV.dev and GitHub
Description
jane-php (open-api-3) builds PHP via nikic/php-parser (AST), so string literals are escaped -- but PHPDoc comment text is emitted RAW. The generated Client/Endpoint method docblocks embed the header parameter name verbatim in a @param array{ ""?: ... } block. A */ in the header name closes the /** ... / docblock early and lands in class-body position; because the name is a raw string key (not identifier-mangled), the / and following PHP survive. Injecting / public function construct(){ } / adds an attacker-controlled construct to the generated Client class, which runs when the client is instantiated -> RCE (CWE-94). Verified 7.11.2/PHP8.1.
Generating a client from an attacker-influenced OpenAPI document and using the generated SDK (instantiating the client, which apps do on every call) runs attacker PHP. CWE-94/95/116.
Affected software
| Software | Affected versions |
|---|---|
jane-php/open-api-3Packagist · osv:Packagist:jane-php/open-api-3 |
|
About jane-php/open-api-3
- Monthly downloads (Packagist)
- 77,019Packagist, 24 Nov 2026
- Total downloads (Packagist)
- 1,769,227Packagist, 24 Nov 2026
Vulnerabilities in jane-php/open-api-3
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 3
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-63415Jane: $ref resolution performs SSRF + LFI (path traversal) at code-generation time (jane-php)High 20 Nov 2026
- CVE-2026-63412Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)Critical 19 Nov 2026
- CVE-2026-63411Jane: Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3)Critical 19 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-63413
- GitHub Advisory Database https://github.com/advisories/GHSA-x9xr-53qx-9qcf