CVE-2026-63415: Jane Path Traversal Vulnerability
HIGHCVE-2026-63415 is a HIGH path traversal vulnerability (CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')) affecting Jane libraries in the Packagist ecosystem. The issue involves $ref resolution performs ssrf + lfi (path traversal) at code-generation time (jane-php). Remediation is available by upgrading affected packages to version 7.12.0.
CVE-2026-63415 at a Glance
How to Fix CVE-2026-63415
To remediate this vulnerability, upgrade all affected Jane dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade jane-php/open-api-3 to 7.12.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for jane-php/open-api-3
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-63415, inspect your project dependencies for Jane:
inspect dependencies for jane-php/open-api-3
Analyze the terminal output to locate any version of Jane in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.12.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion'), where the php application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions. In Jane, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-63415 Affected Jane Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
jane-php/open-api-3
|
Packagist |
< 7.12.0
|
7.12.0
|
References
Frequently Asked Questions
What is CVE-2026-63415?
Which Jane versions are affected?
What version fixes CVE-2026-63415?
Is jane-php/open-api-3 affected?
What CWE is associated with CVE-2026-63415?
How can I check Packagist dependencies for CVE-2026-63415?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c3cj-3p6p-j822",
"modified" : "2026-11-20T00:07:32Z",
"published" : "2026-11-20T00:07:32Z",
"aliases" : [ "CVE-2026-63415" ],
"summary" : "Jane: $ref resolution performs SSRF + LFI (path traversal) at code-generation time (jane-php)",
"details" : "### Summary\njane-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.\n\n### Details\n```php\n// Reference.php::doResolve()\n$contents = file_get_contents($fragment); // $fragment = attacker-controlled $ref URI\n```\n\n### Impact\nGenerating 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.\n\n### PoC\n`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).\n\n### Suggested fix\nDisable 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.\n\n[maintainer-report.txt](https://github.com/user-attachments/files/29497381/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497382/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497384/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497385/make_spec.py)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "jane-php/open-api-3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.12.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/janephp/janephp/security/advisories/GHSA-c3cj-3p6p-j822"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63415"
}, {
"type" : "WEB",
"url" : "https://github.com/janephp/janephp/pull/961"
}, {
"type" : "WEB",
"url" : "https://github.com/janephp/janephp/commit/75f2bbf79ca2f2eeb13080a2cebded1263396b49"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/janephp/janephp"
}, {
"type" : "WEB",
"url" : "https://github.com/janephp/janephp/releases/tag/v7.12.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-611", "CWE-918", "CWE-98" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-20T00:07:32Z",
"nvd_published_at" : "2026-11-18T22:17:22Z"
}
}