{"vuln_id":"GHSA-x9xr-53qx-9qcf","aliases":["CVE-2026-63413"],"description":"Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)","published_at":"2026-11-19T16:12:22Z","modified_at":"2026-11-19T16:30:04.714150Z","first_seen_at":"2026-11-21T19:15:19.494519Z","severity":"critical","severity_source":"ghsa","cvss_score":9.3,"cvss_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","cwe":["CWE-94"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-x9xr-53qx-9qcf"},"matched_alias":null,"items":[{"id":11097,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-x9xr-53qx-9qcf: Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)","summary":"Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)\n\n### Summary\njane-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 header parameter name verbatim in a `@param array{ \"\n\"?: ... }` block. A `*/` in the header 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(){\n} /*` 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.\n\n### Impact\nGenerating 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.\n\n### PoC\n`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.\n\n### Suggested fix\nNeutralize `*/` (e.g. `*/`->`* /`) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing `*/`.\n\n[maintainer-report.txt](https://github.com/user-attachments/files/29497253/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497254/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497255/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497256/make_spec.py)\n\nAffected: Packagist:jane-php/open-api-3\n\nFixed in: 7.12.0\n\nReferences:\nhttps://github.com/janephp/janephp/security/advisories/GHSA-x9xr-53qx-9qcf\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-63413\nhttps://github.com/janephp/janephp/pull/960\nhttps://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a\nhttps://github.com/janephp/janephp\nhttps://github.com/janephp/janephp/releases/tag/v7.12.0","url":"https://osv.dev/vulnerability/GHSA-x9xr-53qx-9qcf","published_at":"2026-11-19T16:12:22Z","updated_at":"2026-11-19T16:30:04.714150Z","fetched_at":"2026-11-21T19:15:55.946427Z","severity":"critical","cvss_score":9.3,"epss":0.00468,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"jane-php/open-api-3","vuln_id":"CVE-2026-63413","vuln_ids":["CVE-2026-63413","GHSA-X9XR-53QX-9QCF"],"tags":["osv","packagist","fix-available"],"cluster_id":2246,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11097","html":"https://vulnwatch.ve1ve2.com/item/11097"}},{"id":2407,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-x9xr-53qx-9qcf / CVE-2026-63413: Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)","summary":"Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)\n\n### Summary\njane-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 header parameter name verbatim in a `@param array{ \"\n\"?: ... }` block. A `*/` in the header 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(){\n} /*` 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.\n\n### Impact\nGenerating 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.\n\n### PoC\n`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.\n\n### Suggested fix\nNeutralize `*/` (e.g. `*/`->`* /`) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing `*/`.\n\n[maintainer-report.txt](https://github.com/user-attachments/files/29497253/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497254/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497255/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497256/make_spec.py)\n\nAffected packages: composer:jane-php/open-api-3\nPatched: jane-php/open-api-3 7.12.0","url":"https://github.com/advisories/GHSA-x9xr-53qx-9qcf","published_at":"2026-11-19T16:12:22Z","updated_at":"2026-11-19T16:12:25Z","fetched_at":"2026-11-21T19:15:18.416813Z","severity":"critical","cvss_score":9.3,"epss":0.00468,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"jane-php/open-api-3","vuln_id":"CVE-2026-63413","vuln_ids":["CVE-2026-63413","GHSA-X9XR-53QX-9QCF"],"tags":["ghsa","composer","CWE-94"],"cluster_id":2246,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2407","html":"https://vulnwatch.ve1ve2.com/item/2407"}},{"id":8247,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-63413: Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, the Jane open-api-3 generato…","summary":"Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, the Jane open-api-3 generator emits an OpenAPI header parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A header parameter name containing a PHPDoc closing delimiter can terminate the comment early and place attacker-controlled PHP in class-body position, including an __construct method that runs when the generated Client is instantiated. Exploitation requires generating a client from an attacker-influenced OpenAPI document and then using the generated SDK, and can execute arbitrary PHP with the consuming application's privileges. This issue is fixed in version 7.12.0.\n\nReferences:\nhttps://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a\nhttps://github.com/janephp/janephp/pull/960\nhttps://github.com/janephp/janephp/releases/tag/v7.12.0\nhttps://github.com/janephp/janephp/security/advisories/GHSA-x9xr-53qx-9qcf","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63413","published_at":"2026-11-18T22:17:22.850000Z","updated_at":"2026-11-19T16:21:40.620000Z","fetched_at":"2026-11-21T19:15:31.484033Z","severity":"critical","cvss_score":9.3,"epss":0.00468,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":null,"vuln_id":"CVE-2026-63413","vuln_ids":["CVE-2026-63413","GHSA-X9XR-53QX-9QCF"],"tags":["CWE-94"],"cluster_id":2247,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8247","html":"https://vulnwatch.ve1ve2.com/item/8247"}}]}