- Package
- jane-php/open-api-3
- Fixed in
- 7.12.0
- Published
- Thu 19 Nov 2026, 16:12 LisbonUpdated Fri 20 Nov 2026, 00:45 Lisbon
- Installs on Packagist
- 2M
In plain words
An attacker who can influence an OpenAPI document can cause Jane to insert malicious PHP into a generated client through a header parameter name. The code runs when your application instantiates the generated client. This affects jane-php/open-api-3 versions below 7.12.0; 7.12.0 contains the fix.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| jane-php/open-api-3 | < 7.12.0 | 7.12.0 |
How serious is it?
Critical is the top band, a CVSS score of 9.0 to 10.0: usually reachable over the network, with no account and no help from a user, and the result is control of the application or its data. Update the same day, before anything else on the list.
jane-php/open-api-3 has 2M installs on Packagist, so the advisory reaches a large number of projects: expect scanners to look for it soon.
Am I affected?
Check composer.lock for jane-php/open-api-3 with a version below 7.12.0. If present, check whether you generate clients from attacker-influenced OpenAPI documents and instantiate those generated clients. The vulnerable input is a header parameter name included in generated PHPDoc.
Did you install jane-php/open-api-3, or did a dependency?
Composer says why a package is in your project:
composer why jane-php/open-api-3
If the output names your own project, you required jane-php/open-api-3 directly and the update is yours to make. If it names another package, jane-php/open-api-3 came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:
composer why-not jane-php/open-api-3 7.12.0
Every line it prints is a constraint that blocks 7.12.0. Update the package it names, or raise your own constraint, and run it again until it prints nothing.
What to do
Check which version you have, then update to a fixed release for your branch (7.12.0):
composer show jane-php/open-api-3 | grep versions
composer update jane-php/open-api-3
If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.
If you cannot update yet
The advisory suggests neutralising comment-closing sequences in all generated PHPDoc text, including parameter names and descriptions, and adding regression tests for those inputs.
Check the whole project at once
Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:
composer audit --locked
--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.
Under the Cyber Resilience Act
No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.
Either way, if jane-php/open-api-3 ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated jane-php/open-api-3, and why, is the evidence you will want later.
What goes in each Article 14 report · Does the CRA apply to your product?
jane-php/open-api-3's record
This is one of 4 advisories for jane-php/open-api-3 in the digest, the first published on 19 November 2026. A package with several advisories is not worse than one with none, which often just means nobody looked; it does tell you to keep it on your update list and to run composer audit after each update.
Other advisories for jane-php/open-api-3
- CVE-2026-63415 · 20 Nov 2026 · High · fixed in 7.12.0 Jane: $ref resolution performs SSRF + LFI (path traversal) at code-generation time (jane-php)
- CVE-2026-63412 · 19 Nov 2026 · Critical · fixed in 7.12.0 Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-63411 · 19 Nov 2026 · Critical · fixed in 7.12.0 Jane: Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3)
The advisory's description
Summary
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{ "<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.
Impact
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.
PoC
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.
Suggested fix
Neutralize */ (e.g. */->* /) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing */.
Weakness: CWE-94 Improper Control of Generation of Code. Reported by Gal3m, mrostamipoor.
CWE-94. Code injection: input ends up executed as PHP, which usually means full control of the server.
The advisory
- GitHub Advisory Database: GHSA-x9xr-53qx-9qcf, with who is affected and how
- OSV.dev: GHSA-x9xr-53qx-9qcf
- All advisories for jane-php/open-api-3