Critical · 9.3 PHP packages CVE-2026-63411 PKSA-4qcg-yvq9-9n6p GHSA-xwcw-j52r-34x4 CVE-2026-63412
Three Critical Code Injection Flaws in Jane's OpenAPI-3 Generator (jane-php/open-api-3)
Three related critical vulnerabilities (CVE-2026-63411, CVE-2026-63412, CVE-2026-63413) in jane-php/open-api-3 allow attacker-controlled OpenAPI document fields to break out of generated PHPDoc comments and inject PHP code that executes when a generated client is instantiated. Fixed in version 7.12.0.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
- NVD (NIST) database 2d ago · view ↗
- NVD (NIST) database 1w ago · view ↗
- NVD (NIST) database 1w ago · view ↗
- CVE.org database 1w ago · view ↗
- CVE.org database 1w ago · view ↗
- CVE.org database 2d ago · view ↗
- Packagist Security Advisories registry 1w ago · view ↗
- Packagist Security Advisories registry 1w ago · view ↗
- Packagist Security Advisories registry 1w ago · view ↗
- GitHub Advisory Database database 1w ago · view ↗
- GitHub Advisory Database database 1w ago · view ↗
- GitHub Advisory Database database 1w ago · view ↗
- OSV.dev database 1w ago · view ↗
- OSV.dev database 1w ago · view ↗
- OSV.dev database 1w ago · view ↗
AI summary
Three closely related critical vulnerabilities have been disclosed in jane-php/open-api-3, a PHP library that generates API client code from OpenAPI and JSON Schema specifications. Each flaw stems from the same root cause: untrusted text from an OpenAPI document is written verbatim into PHPDoc comment blocks in generated code, allowing an attacker who controls that document to break out of the comment and inject arbitrary PHP. All three issues are fixed in version 7.12.0.
What happened
Three vulnerabilities were disclosed in the jane-php/open-api-3 code generator, tracked as CVE-2026-63411, CVE-2026-63412, and CVE-2026-63413. Each describes a near-identical flaw: a different field from an OpenAPI document (a parameter description, a query parameter name, or a header parameter name) is emitted verbatim into a PHPDoc comment block in generated Client/Endpoint methods. If that field contains a PHPDoc closing delimiter (*/), the comment terminates early, placing attacker-controlled text in class-body position in the generated PHP file. This can include a __construct method that runs automatically when the generated Client class is instantiated.
Technical cause
All three issues are classified as CWE-94, Improper Control of Generation of Code. The root cause is that the generator does not sanitize or escape text sourced from an OpenAPI document before embedding it in PHPDoc comments within generated source files. Because PHPDoc blocks use the standard /* ... */ comment syntax, any field value containing the closing sequence */ can prematurely end the comment. Code following that sequence is then parsed as regular PHP rather than as a comment, allowing an attacker who controls the OpenAPI document to inject executable PHP, including constructor logic that fires as soon as the generated client is instantiated.
Why it matters
Each vulnerability carries a CVSS score of 9.3, reflecting that exploitation requires no privileges and no user interaction, and that successful exploitation can result in full compromise of confidentiality, integrity, and availability. If an application generates an API client from an OpenAPI document that an attacker can influence, and that client is subsequently used, the attacker can achieve arbitrary PHP code execution with the privileges of the consuming application.
Who is affected
Developers and organizations using jane-php/open-api-3 to generate PHP API clients from OpenAPI specifications are affected, particularly where the OpenAPI document being consumed originates from, or can be influenced by, an untrusted third party. Exploitation requires that a client be generated from an attacker-influenced document and then that generated client be used by the application.
Affected versions
Versions of jane-php/open-api-3 before 7.12.0 are affected by all three vulnerabilities. The issues are fixed in version 7.12.0.
Fixes and mitigation
All three vulnerabilities are fixed in jane-php/open-api-3 version 7.12.0. Updating the generator alone is not sufficient for previously generated code: any client code generated with an earlier version from a potentially attacker-influenced OpenAPI document should be regenerated using the fixed version.
Recommended action
Update jane-php/open-api-3 to version 7.12.0 or later. Regenerate any previously generated API clients, especially those built from OpenAPI documents obtained from external or untrusted sources. Treat any OpenAPI document from a third party as untrusted input until it has been processed through the fixed generator version.
PatchBriefing score
9.3 / 10 · Critical
Official CVSS: 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:N
EPSS 0.0054 (39 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- jane-php/open-api-3 <7.12.0
- vulnerable
- jane-php/open-api-3 < 7.12.0
- vulnerable
- jane-php/open-api-3 ≥ 0 < 7.12.0
- vulnerable
- jane-php/open-api-3
- vulnerable
- ≥ 7.12.0
- patched
- jane-php/open-api-3 <7.12.0
- vulnerable
- jane-php/open-api-3 < 7.12.0
- vulnerable
- jane-php/open-api-3 ≥ 0 < 7.12.0
- vulnerable
- jane-php/open-api-3
- vulnerable
- ≥ 7.12.0
- patched
- jane-php/open-api-3 <7.12.0
- vulnerable
- jane-php/open-api-3 < 7.12.0
- vulnerable
- jane-php/open-api-3 ≥ 0 < 7.12.0
- vulnerable
- jane-php/open-api-3
- vulnerable
- ≥ 7.12.0
- patched
Reported fixes
All three vulnerabilities are fixed in jane-php/open-api-3 version 7.12.0. Updating the generator alone is not sufficient for previously generated code: any client code generated with an earlier version from a potentially attacker-influenced OpenAPI document should be regenerated using the fixed version.
How this was built
15 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
NVD (NIST) database
-
NVD (NIST) database
-
CVE.org database
-
CVE.org database
-
CVE.org database
Revision history
- Published
- Generated
- Published
- Generated
- Published
- Early Warning