{"vuln_id":"GHSA-xwcw-j52r-34x4","aliases":["CVE-2026-63411"],"description":"Jane: Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3)","published_at":"2026-11-19T16:12:11Z","modified_at":"2026-11-19T16:30:05.189287Z","first_seen_at":"2026-11-21T19:15:19.494529Z","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","CWE-95","CWE-116"],"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-xwcw-j52r-34x4"},"matched_alias":null,"items":[{"id":11095,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-xwcw-j52r-34x4: Jane: Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3)","summary":"Jane: Instantiation RCE via parameter description -> 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 parameter description verbatim in a `@param array{ \"\n\"?: ... }` 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(){\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[maintainer-report.txt](https://github.com/user-attachments/files/29497314/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497317/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497319/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497322/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-xwcw-j52r-34x4\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-63411\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-xwcw-j52r-34x4","published_at":"2026-11-19T16:12:11Z","updated_at":"2026-11-19T16:30:05.189287Z","fetched_at":"2026-11-21T19:15:55.946426Z","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-63411","vuln_ids":["CVE-2026-63411","GHSA-XWCW-J52R-34X4"],"tags":["osv","packagist","fix-available"],"cluster_id":2248,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11095","html":"https://vulnwatch.ve1ve2.com/item/11095"}},{"id":2408,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-xwcw-j52r-34x4 / CVE-2026-63411: Jane: Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3)","summary":"Jane: Instantiation RCE via parameter description -> 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 parameter description verbatim in a `@param array{ \"\n\"?: ... }` 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(){\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[maintainer-report.txt](https://github.com/user-attachments/files/29497314/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497317/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497319/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497322/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-xwcw-j52r-34x4","published_at":"2026-11-19T16:12:11Z","updated_at":"2026-11-19T16:12:12Z","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-63411","vuln_ids":["CVE-2026-63411","GHSA-XWCW-J52R-34X4"],"tags":["ghsa","composer","CWE-94","CWE-95","CWE-116"],"cluster_id":2248,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2408","html":"https://vulnwatch.ve1ve2.com/item/2408"}},{"id":8245,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-63411: 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 parameter description verbatim in generated Client/Endpoint method docblocks. A parameter description 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-xwcw-j52r-34x4","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63411","published_at":"2026-11-18T22:17:22.550000Z","updated_at":"2026-11-18T22:17:22.550000Z","fetched_at":"2026-11-21T19:15:31.484031Z","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-63411","vuln_ids":["CVE-2026-63411","GHSA-XWCW-J52R-34X4"],"tags":["CWE-94","CWE-95","CWE-116"],"cluster_id":2249,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8245","html":"https://vulnwatch.ve1ve2.com/item/8245"}}]}