CVE-2026-63413: Jane Remote Code Execution Vulnerability
CRITICALCVE-2026-63413 is a CRITICAL remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Jane libraries in the Packagist ecosystem. The issue involves instantiation rce via header parameter name -> raw phpdoc */ breakout (jane-php/open-api-3). Remediation is available by upgrading affected packages to version 7.12.0.
CVE-2026-63413 at a Glance
How to Fix CVE-2026-63413
To remediate this vulnerability, upgrade all affected Jane dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade jane-php/open-api-3 to 7.12.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for jane-php/open-api-3
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-63413, inspect your project dependencies for Jane:
inspect dependencies for jane-php/open-api-3
Analyze the terminal output to locate any version of Jane in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.12.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Jane, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-63413 Affected Jane Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jane-php/open-api-3
|
Packagist |
< 7.12.0
|
7.12.0
|
References
Frequently Asked Questions
What is CVE-2026-63413?
Which Jane versions are affected?
What version fixes CVE-2026-63413?
Is jane-php/open-api-3 affected?
What CWE is associated with CVE-2026-63413?
How can I check Packagist dependencies for CVE-2026-63413?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x9xr-53qx-9qcf",
"modified" : "2026-11-19T16:12:23Z",
"published" : "2026-11-19T16:12:22Z",
"aliases" : [ "CVE-2026-63413" ],
"summary" : "Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)",
"details" : "### Summary\njane-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{ \"<name>\"?: ... }` 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(){ <code> } /*` 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.\n\n### Impact\nGenerating 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.\n\n### PoC\n`reproduce.sh` (+ `make_spec.py`, `gen.php`): scaffolds a composer project with jane-php/open-api-3, generates, instantiates the generated Client, shows the marker.\n\n### Suggested fix\nNeutralize `*/` (e.g. `*/`->`* /`) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing `*/`.\n\n[maintainer-report.txt](https://github.com/user-attachments/files/29497253/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497254/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497255/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497256/make_spec.py)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "jane-php/open-api-3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.12.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/janephp/janephp/security/advisories/GHSA-x9xr-53qx-9qcf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63413"
}, {
"type" : "WEB",
"url" : "https://github.com/janephp/janephp/pull/960"
}, {
"type" : "WEB",
"url" : "https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/janephp/janephp"
}, {
"type" : "WEB",
"url" : "https://github.com/janephp/janephp/releases/tag/v7.12.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-19T16:12:22Z",
"nvd_published_at" : "2026-11-18T22:17:22Z"
}
}