Live threats

All CVEs / janephp

CVE-2026-63412janephp

PHP Code Injection in Jane OpenAPI Generator

Critical 9.3 No auth needed

Priority
75
CVSS 4.0
9.3
EPSS
—
Auth required
No
Published
Nov 18, 2026
Updated
Nov 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94, CWE-95, CWE-116
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

The Jane open-api-3 generator emits query parameter names unsanitized in method docblocks, allowing a PHPDoc closing delimiter to terminate the comment early. An attacker can inject arbitrary PHP code, including a __construct method that executes when the generated client is instantiated, if a client is generated from an attacker-controlled OpenAPI document.

Show the original NVD text

Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, the Jane open-api-3 generator emits an OpenAPI query parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A query parameter name containing a PHPDoc closing delimiter can terminate the comment early and place attacker-controlled PHP in class-body position, including an __construct method that runs when the generated Client is instantiated. Exploitation requires generating a client from an attacker-influenced OpenAPI document and then using the generated SDK, and can execute arbitrary PHP with the consuming application's privileges. This issue is fixed in version 7.12.0.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 7.12.0

Update jane-php/open-api-3 to version 7.12.0 or later and regenerate clients from trusted OpenAPI documents.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for janephp.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist jane-php/open-api-3 < 7.12.0 7.12.0 composer require "jane-php/open-api-3:^7.12.0"

Per OSV / GitHub Advisories (GHSA-q8v2-3j4h-xg2p). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

On social media

1 person and 1 post on Bluesky in the last 30 days.

Most recent posts, without bots or automated feeds. The text belongs to its authors. Search on Bluesky

Official sources

References

Links published by the sources. Open them with care.