Read the docs

SSRF and path traversal in Jane PHP $ref resolution

Priority MEDIUM 64CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Active
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-98.

Summary

The janephp package before 7.12.0 and jane-php/open-api-3 from 0 before 7.12.0 on Packagist are affected. Reference.php doResolve passes an attacker-controlled $ref to file_get_contents without restricting its scheme or local path (CWE-918). A victim who generates code from an attacker-influenced document can expose internal service responses or local JSON or YAML files in the generated output.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, Jane's Reference.php::doResolve passes an attacker-controlled OpenAPI $ref target to file_get_contents without restricting its scheme or resolved local path. When a victim generates code from an attacker-influenced document, an HTTP or HTTPS reference can cause requests to attacker-chosen or internal services, while an absolute or parent-relative path can read local JSON or YAML files and inline the retrieved content into generated output. Exploitation occurs during generation or CI processing and can disclose local files and internal-service responses. This issue is fixed in version 7.12.0.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00511 36th percentileScored 2026-11-30
Fix Fixed janephp (janephp): 7.12.0jane-php/open-api-3 (Packagist): 7.12.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
janephpjanephpbefore 7.12.07.12.0Patch availableCNA
—jane-php/open-api-3 (Packagist)before 7.12.07.12.0Patch availableGHSA-c3cj-3p6p-j822
  • janephp Vendorjanephp Affected before 7.12.0 Fixed in 7.12.0 Patch available CNA
  • jane-php/open-api-3 (Packagist) Vendor— Affected before 7.12.0 Fixed in 7.12.0 Patch available GHSA-c3cj-3p6p-j822

Remediation

Upgrade janephp and jane-php/open-api-3 to 7.12.0, the fixed version for both packages.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA janephp (janephp) Fixed in 7.12.0
  • Fix · GHSA-c3cj-3p6p-j822 jane-php/open-api-3 (Packagist) Fixed in 7.12.0 Advisory →

Timeline

  1. 2026-11-18 Threatist record created from CVE-2026-63415
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-20 Alias added: GHSA-c3cj-3p6p-j822
  4. 2026-11-20 Fix available: Packagist/jane-php/[email protected] · GHSA-c3cj-3p6p-j822
  5. 2026-11-20 CVSS score added · GHSA-c3cj-3p6p-j822
  6. 2026-11-20 Weakness changed · GHSA-c3cj-3p6p-j822
  7. 2026-11-20 6 new references · GHSA-c3cj-3p6p-j822

References

  • TI-2026-94246 Code injection in Jane PHP open-api-3 generator via parameter descriptions CVSS 4.0CRITICAL 9.3
  • TI-2026-94248 Jane open-api-3 PHP code injection via header parameter name CVSS 4.0CRITICAL 9.3
  • TI-2026-94247 Code injection in Jane open-api-3 generator via query parameter names CVSS 4.0CRITICAL 9.3

Sources