CVE-2026-63411: Jane PHP code generator PHPDoc injection can lead to RCE
Jane PHP libraries before 7.12.0 can emit attacker-controlled OpenAPI parameter descriptions verbatim into generated PHPDoc blocks. A crafted description containing a PHPDoc closing delimiter can break out of the comment and inject PHP class-body code, including an construct method that runs when the generated Client is instantiated. This can lead to arbitrary PHP execution with the consuming application's privileges. Fixed in 7.12.0.
Overview
CVE-2026-63411 affects the Jane open-api-3 generator (janephp/janephp) before version 7.12.0. The generator places OpenAPI parameter descriptions directly into generated Client/Endpoint method docblocks without sanitization. If an attacker can influence the OpenAPI document used to generate a client, they can include a PHPDoc closing delimiter (*/) followed by PHP code in class-body position. This can inject a __construct method that executes when the generated Client is instantiated, resulting in arbitrary PHP code execution with the consuming application's privileges.
Exploitation conditions
- The attacker must be able to influence the OpenAPI/JSON Schema document used by Jane to generate code. - The generated SDK must then be used by the consuming application. - No in-the-wild exploitation is indicated in the provided evidence.
Fixed version
- Fixed in Jane PHP version 7.12.0 .
References
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-63411 - Commit: https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a - Pull request: https://github.com/janephp/janephp/pull/960 - Release: https://github.com/janephp/janephp/releases/tag/v7.12.0 - Advisory: https://github.com/janephp/janephp/security/advisories/GHSA-xwcw-j52r-34x4
What to do
1. Upgrade janephp/janephp to 7.12.0 or later as soon as possible. 2. If you cannot upgrade immediately, regenerate any existing SDKs from trusted OpenAPI documents and audit generated Client/Endpoint files for injected class-body code, especially unexpected __construct methods. 3. Treat OpenAPI and JSON Schema documents as untrusted input; validate and sanitize descriptions before passing them to code generators. 4. Verify the vendor advisory and release notes before making production changes, especially if your build pipeline uses pinned versions. 5. Review any generated SDKs currently in use for signs of tampering or injected code, and re-generate them from a clean, trusted specification after upgrading.