All vulnerabilities

Packagist

CVE-2026-63412

Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)

Severity
Critical
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
7.12.0
Exploit chance
0.5% in the next 30 daysHigher than 43% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Improper output encoding (CWE-116)Code injection (CWE-94)Eval injection (CWE-95)
Also known as
GHSA-q8v2-3j4h-xg2p
Sources
OSV.dev and GitHub

Description

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 query parameter name verbatim in a @param array{ ""?: ... } block. A */ in the query name 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(){ } / 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.

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.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
jane-php/open-api-3Packagist · osv:Packagist:jane-php/open-api-3
  • Every version before 7.12.0

About jane-php/open-api-3

Monthly downloads (Packagist)
77,019Packagist, 24 Nov 2026
Total downloads (Packagist)
1,769,227Packagist, 24 Nov 2026

References