jane-php flaw enables SSRF and local file reads during code generation
- jane-php
- SSRF
- LFI
- path traversal

Unrestricted reference resolution allows arbitrary file reads
Unrestricted reference resolution can trigger network requests and read local files
The jane-php library has a vulnerability that can trigger server-side request forgery (SSRF) and local file inclusion (LFI) while generating code from an OpenAPI document. The issue affects jane-php/open-api-3 versions earlier than 7.12.0.
The flaw arises because the library resolves external $ref references with file_get_contents($ref) without restricting URL schemes or file paths. A crafted document can make code generation send a request to an attacker-chosen URL or read local JSON and YAML files through absolute paths or path traversal.
The vulnerability was verified in version 7.11.2 running on PHP 8.1. Version 7.12.0 fixes the issue.




