Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › Vulnerabilities › janephp

Critical 9.3 4 CVEs Analysis

janephp Flaws Allow Code Injection and File Reads via Crafted OpenAPI Documents; Fixed in 7.12.0

Four vulnerabilities in janephp, published by NVD on 2026-11-18, affect versions before 7.12.0 and are fixed in 7.12.0. Three critical flaws let an attacker-influenced OpenAPI document inject PHP into generated client code, and one high-severity flaw lets a $ref target reach local files or internal services.

What to look into

  • 4 vulnerabilities in janephp: 3 critical, 1 high (CVSS up to 9.3).
  • None of them is known to be exploited yet.
  • Start with CVE-2026-63412 (9.3 critical): Jane PHP OpenAPI Generator Allows Code Injection via PHPDoc Delimiter. An attacker without an account can exploit this over the network, without any user action.
  • 4 of 4 can be attacked over the network without logging in, 3 of them without anyone clicking anything.
  • Kinds of flaws: Improper Control of Generation of Code ('Code Injection') (×3); Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') (×2); Improper Encoding or Escaping of Output (×2); Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Endpoint securityPHPVulnerabilitiesWeb

Key points

  • Three CRITICAL (CVSS 9.3) flaws, CVE-2026-63412, CVE-2026-63411 and CVE-2026-63413, allow PHP injection into generated Client code via PHPDoc comment escaping.
  • The injected code reportedly runs when the generated Client is instantiated, with the consuming application's privileges.
  • CVE-2026-63415 (HIGH, CVSS 7.0) lets a crafted $ref read local JSON or YAML files or reach internal services during generation or CI.
  • All four issues are fixed in janephp 7.12.0; the records do not state any known exploitation.

What the batch covers

All four records concern Jane, a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Each record says the problem exists prior to 7.12.0 and is fixed in version 7.12.0.

Code injection in generated clients

CVE-2026-63412, CVE-2026-63411 and CVE-2026-63413 share one root cause. The open-api-3 generator copies text from the specification verbatim into PHPDoc blocks in generated Client and Endpoint classes. The three records differ only in where the text comes from: a query parameter name (CVE-2026-63412), a parameter description (CVE-2026-63411), or a header parameter name (CVE-2026-63413).

According to the records, a PHPDoc closing delimiter in any of these fields ends the comment early, so the rest of the text is placed in class-body position as PHP. The records describe a constructor-style method that runs when the generated Client is instantiated. All three are rated CRITICAL, CVSS 9.3, and the records state that the injected code runs with the privileges of the consuming application.

Exploitation requires two steps: generating a client from an attacker-influenced OpenAPI document, then using the generated SDK.

Local file reads and internal requests

CVE-2026-63415 is rated HIGH, CVSS 7.0. Its record says that Reference.php::doResolve passes an attacker-controlled $ref target to file_get_contents without restricting the scheme or the resolved local path. An HTTP or HTTPS reference can cause requests to attacker-chosen or internal services. An absolute or parent-relative path can read local JSON or YAML files and place their content into generated output. This happens during generation or CI processing.

Exposure and status

The records do not state that any of these flaws is known to be exploited. They do not give a workaround or detection method beyond the fixed version, 7.12.0. Teams that generate code from specifications they do not control are the ones the records describe as exposed.

What to do

  1. Upgrade janephp to version 7.12.0, the fixed version named in all four records.
  2. Until the upgrade is done, avoid generating clients or models from OpenAPI documents that are not fully trusted, since every flaw depends on an attacker-influenced document.
  3. Review CI jobs that run code generation, because CVE-2026-63415 is triggered during generation or CI processing.

Our article about all 4 vulnerabilities, written with AI assistance from the official records listed below. Each CVE's page has its details.

The 4 vulnerabilities

  • CVE-2026-63412 9.3 Jane PHP OpenAPI Generator Allows Code Injection via PHPDoc Delimiter
  • CVE-2026-63411 9.3 Jane PHP Libraries: Code Injection Vulnerability in OpenAPI Generator
  • CVE-2026-63413 9.3 Jane PHP Library Code Injection Vulnerability in OpenAPI Generator
  • CVE-2026-63415 7.0 Jane PHP Libraries Vulnerable to SSRF and Path Traversal [CVE-2026-63415]

Frequently asked questions

How many janephp vulnerabilities were published on November 18, 2026?

4 vulnerabilities: 3 critical, 1 high, with CVSS scores up to 9.3.

Are any of them being exploited?

None of them is in CISA's Known Exploited Vulnerabilities catalog yet.

Which one should be fixed first?

CVE-2026-63412 (CVSS 9.3): Jane PHP OpenAPI Generator Allows Code Injection via PHPDoc Delimiter.

Original records