CVE-2026-63413: PHP code injection via crafted OpenAPI header parameter in Jane open-api-3 generator
Jane PHP before 7.12.0 can emit attacker-controlled PHP into generated client class bodies when an OpenAPI document contains a malicious header parameter name, leading to arbitrary PHP execution when the generated SDK is instantiated. Fixed in 7.12.0.
Overview
CVE-2026-63413 affects the Jane PHP library set, specifically the open-api-3 generator, before version 7.12.0. When generating a client/endpoint from an OpenAPI document, the generator places an OpenAPI header parameter name verbatim into an array key in the generated PHPDoc. A header parameter name containing a PHPDoc closing delimiter can terminate the docblock early and place attacker-controlled PHP in class-body position, including an __construct method that runs when the generated client is instantiated.
Exploitation requires an attacker-influenced OpenAPI document to be used for code generation, followed by use of the generated SDK. If those conditions are met, arbitrary PHP can be executed with the privileges of the consuming application.
Affected product
- Jane PHP open-api-3 generator before 7.12.0
Fixed version
- 7.12.0
What to do
1. Confirm the Jane version in use against the vendor advisory/GHSA, then upgrade Jane PHP packages to 7.12.0 or later. 2. If an immediate upgrade is not possible, stop generating SDKs from untrusted or attacker-influenced OpenAPI/JSON Schema documents until the patch is applied. 3. After upgrading, regenerate all affected clients and review the diff for unexpected class-body code, injected __construct methods, or malformed PHPDoc blocks. 4. Audit any previously generated SDKs for header parameter names containing PHPDoc delimiters or other suspicious injected code, and treat those generated artifacts as potentially compromised. 5. Monitor the vendor advisory and NVD entry for further guidance or additional fixes.
References
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-63413 - Vendor advisory: https://github.com/janephp/janephp/security/advisories/GHSA-x9xr-53qx-9qcf - Fix commit: https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a - Release: https://github.com/janephp/janephp/releases/tag/v7.12.0