CRITICAL · CVSS 4.0 EPSS 0.5% · 41th percentile CWE-116CWE-94CWE-95

CVE-2026-63411: Jane: Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3)

Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-xwcw-j52r-34x4

Summary

The jane-php/open-api-3 library fails to sanitize PHPDoc comment strings during code generation, allowing attackers to break out of comment blocks and inject arbitrary PHP code. Developers using this library to generate SDKs from untrusted OpenAPI documents should upgrade immediately to version 7.12.0 or later.

Who is affected

This vulnerability allows for Remote Code Execution (RCE) when an attacker-influenced OpenAPI specification is processed by the library. The injected code executes upon the instantiation of the generated client, which typically occurs during standard application runtime operations. The vulnerability affects all users generating client SDKs from remote or untrusted OpenAPI definitions.

Exploitability

The vulnerability carries a CRITICAL severity, reflecting the potential for full system compromise. With a CVSS 4.0 vector of AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, the flaw is considered easily exploitable with no authentication or user interaction required. Current EPSS data indicates a low probability of exploitation, and it is not listed in the CISA KEV catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Packagist jane-php/open-api-3 >= 0, < 7.12.0 7.12.0 composer require "jane-php/open-api-3:>=7.12.0"

CVSS 4.0 vector

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

Attack vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)High
Integrity (vulnerable system)High
Availability (vulnerable system)High
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What is the root cause of this vulnerability?

The library improperly handles PHPDoc generation by failing to sanitize string inputs, specifically allowing a '*/' sequence to terminate a comment block prematurely and inject arbitrary PHP code into the class body.

Is this vulnerability actively exploited in the wild?

There is no evidence of active exploitation at this time, as the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

What specifically triggers the remote code execution?

The injected code is executed whenever the generated client class is instantiated by the application, which occurs during the normal lifecycle of the SDK's usage.

Original advisory description
### Summary jane-php (open-api-3) builds PHP via nikic/php-parser (AST), so string literals are escaped -- but PHPDoc comment text is emitted RAW. The generated Client/Endpoint method docblocks embed the parameter description verbatim in a `@param array{ "<name>"?: ... }` block. A `*/` in the parameter description closes the `/** ... */` docblock early and lands in class-body position; because the name is a raw string key (not identifier-mangled), the `*/` and following PHP survive. Injecting `*/ public function __construct(){ <code> } /*` adds an attacker-controlled __construct to the generated Client class, which runs when the client is instantiated -> RCE (CWE-94). Verified 7.11.2/PHP8.1. ### Impact Generating a client from an attacker-influenced OpenAPI document and using the generated SDK (instantiating the client, which apps do on every call) runs attacker PHP. CWE-94/95/116. ### PoC `reproduce.sh` (+ `make_spec.py`, `gen.php`): scaffolds a composer project with jane-php/open-api-3, generates, instantiates the generated Client, shows the marker. ### Suggested fix Neutralize `*/` (e.g. `*/`->`* /`) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing `*/`. [maintainer-report.txt](https://github.com/user-attachments/files/29497314/maintainer-report.txt) [reproduce.sh](https://github.com/user-attachments/files/29497317/reproduce.sh) [gen.php](https://github.com/user-attachments/files/29497319/gen.php) [make_spec.py](https://github.com/user-attachments/files/29497322/make_spec.py)

References

Source records: GHSA-xwcw-j52r-34x4 (OSV.dev) · EPSS by FIRST, 2026-11-22.