CVE-2026-63415: Jane Path Traversal Vulnerability

HIGH
Advisory Identifier: GHSA-c3cj-3p6p-j822
Advisory Summary

CVE-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

CVE Identifier CVE-2026-63415
GHSA Identifier GHSA-c3cj-3p6p-j822
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
Affected Product Jane
Package Ecosystem Packagist
Published Date
Last Updated

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.

jane-php/open-api-3 fixed: 7.12.0
Upgrade jane-php/open-api-3 to 7.12.0
Verify Direct and Transitive Dependencies

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

### 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)

CVE-2026-63415 Affected Jane Versions

1 component(s)
Fixed Versions:
7.12.0
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?
CVE-2026-63415 is a security vulnerability in Jane involving $ref resolution performs SSRF + LFI (path traversal) at code-generation time (jane-php) under CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion').
Which Jane versions are affected?
Affected versions include releases prior to 7.12.0 across affected packages: jane-php/open-api-3.
What version fixes CVE-2026-63415?
Upgrading to 7.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jane-php/open-api-3 affected?
Yes, jane-php/open-api-3 is affected in releases prior to 7.12.0. Upgrade your dependency to 7.12.0 or later.
What CWE is associated with CVE-2026-63415?
CVE-2026-63415 is classified under CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') (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.).
How can I check Packagist dependencies for CVE-2026-63415?
Run the dependency tree command: 'inspect dependencies for jane-php/open-api-3'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}