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

State
Published
Severity
7.0 High
Published
Nov 18, 2026
Updated
Nov 19, 2026
Reserved
Jul 16, 2026

Read the record on cve.org

Description

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.

ProductVersions
janephp janephp< 7.12.0 Affected

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
  • CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program
  • CWE-611 Improper Restriction of XML External Entity Reference
  • CWE-918 Server-Side Request Forgery

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.