CVE-2026-63412jane-php/open-api-3 Code Injection
NVD
Vulnerability Summary
### 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 query parameter name verbatim in a `@param array{ "<name>"?: ... }` block. A `*/` in the query 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 `*/`.
[maintainer-report.txt](https://github.com/user-attachments/files/29497099/maintainer-report.txt)
[reproduce.sh](https://github.com/user-attachments/files/29497102/reproduce.sh)
[gen.php](https://github.com/user-attachments/files/29497103/gen.php)
[make_spec.py](https://github.com/user-attachments/files/29497104/make_spec.py)
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 query parameter name verbatim in a `@param array{ "<name>"?: ... }` block. A `*/` in the query 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 `*/`.
[maintainer-report.txt](https://github.com/user-attachments/files/29497099/maintainer-report.txt)
[reproduce.sh](https://github.com/user-attachments/files/29497102/reproduce.sh)
[gen.php](https://github.com/user-attachments/files/29497103/gen.php)
[make_spec.py](https://github.com/user-attachments/files/29497104/make_spec.py)
CVSS v4.0 Base Metrics — Score 9.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NAttack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Affected & Patched Versions
- jane-php/open-api-3 < 7.12.0
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is critical.
- Check whether you run jane-php/open-api-3 and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
Timeline
- Nov 18, 2026Published
- Nov 19, 2026Record last modified
- Nov 19, 2026CVSS score changed: 0.0 to 9.3
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new jane-php/open-api-3 CVEsYou are reading CVE-2026-63412. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://github.com/janephp/janephp/security/advisories/GHSA-q8v2-3j4h-xg2p
- CVE Recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-63412
- Patchhttps://github.com/janephp/janephp/pull/960
- Patchhttps://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a
- Referencehttps://github.com/janephp/janephp/releases/tag/v7.12.0
- Referencehttps://github.com/advisories/GHSA-q8v2-3j4h-xg2p
Data last checked: Nov 19, 2026 20:00 UTC