CVE-2026-63412: Jane open-api-3 generated code RCE via malicious OpenAPI query parameter names

Jane PHP libraries before 7.12.0 can emit attacker-controlled PHP into generated Client/Endpoint class bodies when an OpenAPI query parameter name contains a PHPDoc closing delimiter. Exploitation requires generating a client from an attacker-influenced OpenAPI document and then using the generated SDK, leading to arbitrary PHP execution with the consuming application's privileges. Fixed in 7.12.0.

Overview

CVE-2026-63412 affects the Jane PHP library set, specifically the open-api-3 generator. Prior to version 7.12.0, the generator copies an OpenAPI query parameter name verbatim into an array key inside generated Client/Endpoint method docblocks. A crafted 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.

Exploitability

- Attack chain: attacker supplies a malicious OpenAPI document - developer generates a client with Jane - generated SDK is instantiated/used in an application - arbitrary PHP executes with the application's privileges. - This is not a direct remote attack on a running application; it requires the code-generation step to consume attacker-influenced OpenAPI input. - The issue is rated critical because successful exploitation results in arbitrary code execution in the consuming application.

Fixed version

- Fixed in Jane 7.12.0. - Vendor advisory: https://github.com/janephp/janephp/security/advisories/GHSA-q8v2-3j4h-xg2p - Release: https://github.com/janephp/janephp/releases/tag/v7.12.0

What to do

1. Upgrade Jane to version 7.12.0 or later as soon as possible, especially if you generate clients from OpenAPI documents that are not fully trusted. 2. If you cannot upgrade immediately, stop generating clients from untrusted or externally supplied OpenAPI documents until the patch is applied. 3. Review any previously generated clients for suspicious class-body content, unexpected __construct methods, or injected PHP in docblocks, particularly if the source OpenAPI documents came from third parties. 4. Regenerate all affected SDKs with the patched Jane version and re-run your build/test pipeline before deploying. 5. Treat OpenAPI/JSON Schema inputs as untrusted code-generation input; validate and review them before use, even after patching. 6. Verify the vendor advisory and your exact Jane version before changing production, and confirm the upgrade does not introduce breaking changes in generated code.

Sources