Jane open-api-3: */ breakout runs PHP on generated client instantiation (CVE-2026-63411 to -63413)
Severity: critical · Patch status: patched · Since 2026-07-09 · CVE-2026-63411, CVE-2026-63412, CVE-2026-63413
Jane's open-api-3 generator (Composer jane-php/open-api-3, before 7.12.0) copies OpenAPI parameter descriptions, header parameter names and query parameter names into the PHPDoc of generated Client and Endpoint methods without escaping them. A / inside one of those values closes the comment early, and the text after it lands in class-body position; a crafted name can therefore add an attacker-chosen construct to the generated Client, which runs whenever the application instantiates the client. The three CVEs (CVE-2026-63411 for parameter descriptions, CVE-2026-63413 for header names, CVE-2026-63412 for query names) are CWE-94/95/116 and were published with three GitHub advisories on 2026-11-19. The attacker has to supply the OpenAPI document that is fed to the generator, so the practical exposure is pipelines that generate clients from third-party or otherwise untrusted specs; a team that generates only from its own specs is much less exposed. The fix (PR 960, commit 0ea379de) was merged and released as v7.12.0 on 2026-07-09, four months before the advisories, which the release notes already cite by GHSA id. Later release lines (v8.0.0, v8.1.2) contain that commit. Proof-of-concept scripts are attached to the advisories and the advisories report verification on 7.11.2 with PHP 8.1; we did not download or run them. No source states in-the-wild exploitation. Action: upgrade to 7.12.0 or a later release, regenerate every client produced from an OpenAPI document that is not fully under your control, and inspect generated code for unexpected construct methods.
What to do
- Upgrade jane-php/open-api-3 to 7.12.0 or a later release (the fix commit is in every later tag of the janephp monorepo that we compared)
- Regenerate every client from each OpenAPI document after upgrading; a generator upgrade alone does not change code already in your repository
- For any client generated from a third-party or otherwise untrusted OpenAPI document, review the generated Client and Endpoint files for */ sequences in docblocks or unexpected __construct methods before use
- Treat OpenAPI documents from partners and public sources as untrusted input at code-generation time; do not generate in a process that holds production secrets
- Add a regression check that generation fails or escapes when a parameter name or description contains */
Fixed versions
- jane-php/open-api-3 7.12.0
Sources
All live incidents on Threat Watch