HIGH · CVSS 4.0 EPSS 0.5% · 45th percentile CWE-22CWE-611CWE-918CWE-98

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

Published 2026-11-20 · Updated 2026-11-20 · Also known as GHSA-c3cj-3p6p-j822

Summary

jane-php improperly resolves external $ref targets using file_get_contents at code-generation time without scheme or path restrictions, leading to SSRF and path traversal. Developers using jane-php/open-api-3 should update to protect their build environments.

Who is affected

Applications using jane-php/open-api-3 to process untrusted or attacker-influenced OpenAPI documents are affected. During build or CI time, an attacker can trigger Server-Side Request Forgery (SSRF) to target internal services or cloud metadata, and Local File Inclusion (LFI) via path traversal to read arbitrary local JSON or YAML files, with results inlined into the generated code.

Exploitability

The vulnerability has a CVSS 4.0 base score vector indicating network attack vector and low complexity, requiring user interaction and resulting in high confidentiality and low integrity impact. Its EPSS score is 0.003 (percentile 0.291) and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Packagist jane-php/open-api-3 >= 0, < 7.12.0 7.12.0 composer require "jane-php/open-api-3:>=7.12.0"

CVSS 4.0 vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Attack vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionActive
Confidentiality (vulnerable system)High
Integrity (vulnerable system)Low
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What causes this vulnerability in jane-php?

The vulnerability is caused by insecure handling of external $ref targets using file_get_contents($fragment) within Reference.php::doResolve without validating scheme or path constraints.

When does the exploitation occur?

Exploitation occurs at code-generation time (build or CI time) when jane-php processes an attacker-influenced OpenAPI document.

Which package and version fix this issue?

The issue is fixed in the Packagist package jane-php/open-api-3 version 7.12.0.

Original advisory description
### Summary jane-php resolves external `$ref` targets at code-generation time via `file_get_contents($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 ```php // Reference.php::doResolve() $contents = file_get_contents($fragment); // $fragment = attacker-controlled $ref URI ``` ### Impact Generating PHP with jane from an attacker-influenced OpenAPI document issues HTTP requests to attacker-chosen URLs (SSRF - internal services, cloud metadata) and reads arbitrary local files (LFI via `../`), at build/CI time, inlining results into the output. ### PoC `reproduce.sh` (+ `make_spec.py`, `gen.php`): runs jane on a remote-$ref spec (local listener records the SSRF, output checked for the inlined response) and a `../`-traversal local-$ref spec (output checked for the leaked file). ### Suggested fix Disable remote `$ref` fetching by default (or allow-list); confine local `$ref` to the spec directory (reject absolute paths and `..`). Don't `file_get_contents($ref)` on attacker-controlled URIs. [maintainer-report.txt](https://github.com/user-attachments/files/29497381/maintainer-report.txt) [reproduce.sh](https://github.com/user-attachments/files/29497382/reproduce.sh) [gen.php](https://github.com/user-attachments/files/29497384/gen.php) [make_spec.py](https://github.com/user-attachments/files/29497385/make_spec.py)

References

Source records: GHSA-c3cj-3p6p-j822 (OSV.dev) · EPSS by FIRST, 2026-11-22.