Jane: $ref resolution performs SSRF + LFI (path traversal) at code-generation time (jane-php)
High severity. Published 20 November 2026. Update jane-php/open-api-3 to 7.12.0 or later: composer update jane-php/open-api-3.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| jane-php/open-api-3 (opens in a new tab) | < 7.12.0 | 7.12.0 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show jane-php/open-api-3
composer auditAdvisory details
| Severity | High |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-63415 (opens in a new tab) |
| GHSA | GHSA-c3cj-3p6p-j822 (opens in a new tab) |
| Weakness | CWE-22, CWE-98, CWE-611, CWE-918 |
What the advisory says
Summary jane-php resolves external $ref targets at code-generation time via filegetcontents($ref) (jane-php/json-schema-runtime/Reference.php::doResolve) with no scheme/path restriction. An attacker-controlled OpenAPI document can therefore cause: $ref: 'http://attacker/x' - SSRF (HTTP GET at gen time; response inlined = RFI); $ref: '/abs/file' - LFI; $ref: '../secret.yaml' - path-traversal LFI (CWE-22, arbitrary local JSON/YAML read). Verified 7.11.2/PHP8.1 (listener records the fetch; remote + ../ local content inlined into the generated code). file:// rejected. CWE-918/CWE-98/CWE-611/CWE-22.
Details
Source: GHSA-c3cj-3p6p-j822 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- Jane: Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3) (critical, 19 November 2026)
- Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3) (critical, 19 November 2026)
- Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3) (critical, 19 November 2026)