CVE-2026-63411: Jane Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-xwcw-j52r-34x4
CWE-116 CWE-94 CWE-95
Published
Advisory Summary

CVE-2026-63411 is a CRITICAL remote code execution vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Jane libraries in the Packagist ecosystem. The issue involves instantiation rce via parameter description -> raw phpdoc */ breakout (jane-php/open-api-3). Remediation is available by upgrading affected packages to version 7.12.0.

CVE-2026-63411 at a Glance

CVE Identifier CVE-2026-63411
GHSA Identifier GHSA-xwcw-j52r-34x4
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Jane
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-63411

To remediate this vulnerability, upgrade all affected Jane dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

jane-php/open-api-3 fixed: 7.12.0
Upgrade jane-php/open-api-3 to 7.12.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for jane-php/open-api-3

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-63411, inspect your project dependencies for Jane:

inspect dependencies for jane-php/open-api-3

Analyze the terminal output to locate any version of Jane in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.12.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Jane, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary jane-php (open-api-3) builds PHP via nikic/php-parser (AST), so string literals are escaped -- but PHPDoc comment text is emitted RAW. The generated Client/Endpoint method docblocks embed the parameter description verbatim in a `@param array{ "<name>"?: ... }` block. A `*/` in the parameter description closes the `/** ... */` docblock early and lands in class-body position; because the name is a raw string key (not identifier-mangled), the `*/` and following PHP survive. Injecting `*/ public function __construct(){ <code> } /*` adds an attacker-controlled __construct to the generated Client class, which runs when the client is instantiated -> RCE (CWE-94). Verified 7.11.2/PHP8.1. ### Impact Generating a client from an attacker-influenced OpenAPI document and using the generated SDK (instantiating the client, which apps do on every call) runs attacker PHP. CWE-94/95/116. ### PoC `reproduce.sh` (+ `make_spec.py`, `gen.php`): scaffolds a composer project with jane-php/open-api-3, generates, instantiates the generated Client, shows the marker. ### Suggested fix Neutralize `*/` (e.g. `*/`->`* /`) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing `*/`. [maintainer-report.txt](https://github.com/user-attachments/files/29497314/maintainer-report.txt) [reproduce.sh](https://github.com/user-attachments/files/29497317/reproduce.sh) [gen.php](https://github.com/user-attachments/files/29497319/gen.php) [make_spec.py](https://github.com/user-attachments/files/29497322/make_spec.py)

CVE-2026-63411 Affected Jane Versions

1 component(s)
Fixed Versions:
7.12.0
Product / Package Ecosystem Affected Versions Fixed Version
jane-php/open-api-3
Packagist
< 7.12.0
7.12.0

References

Frequently Asked Questions

What is CVE-2026-63411?
CVE-2026-63411 is a security vulnerability in Jane involving Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3) under CWE-116: Improper Encoding or Escaping of Output.
Which Jane versions are affected?
Affected versions include releases prior to 7.12.0 across affected packages: jane-php/open-api-3.
What version fixes CVE-2026-63411?
Upgrading to 7.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jane-php/open-api-3 affected?
Yes, jane-php/open-api-3 is affected in releases prior to 7.12.0. Upgrade your dependency to 7.12.0 or later.
What CWE is associated with CVE-2026-63411?
CVE-2026-63411 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check Packagist dependencies for CVE-2026-63411?
Run the dependency tree command: 'inspect dependencies for jane-php/open-api-3'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xwcw-j52r-34x4",
  "modified" : "2026-11-19T16:12:11Z",
  "published" : "2026-11-19T16:12:11Z",
  "aliases" : [ "CVE-2026-63411" ],
  "summary" : "Jane: Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3)",
  "details" : "### Summary\njane-php (open-api-3) builds PHP via nikic/php-parser (AST), so string literals are escaped -- but PHPDoc comment text is emitted RAW. The generated Client/Endpoint method docblocks embed the parameter description verbatim in a `@param array{ \"<name>\"?: ... }` block. A `*/` in the parameter description closes the `/** ... */` docblock early and lands in class-body position; because the name is a raw string key (not identifier-mangled), the `*/` and following PHP survive. Injecting `*/ public function __construct(){ <code> } /*` adds an attacker-controlled __construct to the generated Client class, which runs when the client is instantiated -> RCE (CWE-94). Verified 7.11.2/PHP8.1.\n\n### Impact\nGenerating a client from an attacker-influenced OpenAPI document and using the generated SDK (instantiating the client, which apps do on every call) runs attacker PHP. CWE-94/95/116.\n\n### PoC\n`reproduce.sh` (+ `make_spec.py`, `gen.php`): scaffolds a composer project with jane-php/open-api-3, generates, instantiates the generated Client, shows the marker.\n\n### Suggested fix\nNeutralize `*/` (e.g. `*/`->`* /`) in all generated PHPDoc text (parameter names, descriptions). Regression-test with a parameter name/description containing `*/`.\n[maintainer-report.txt](https://github.com/user-attachments/files/29497314/maintainer-report.txt)\n[reproduce.sh](https://github.com/user-attachments/files/29497317/reproduce.sh)\n[gen.php](https://github.com/user-attachments/files/29497319/gen.php)\n[make_spec.py](https://github.com/user-attachments/files/29497322/make_spec.py)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "jane-php/open-api-3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/janephp/janephp/security/advisories/GHSA-xwcw-j52r-34x4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-63411"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/janephp/janephp/pull/960"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/janephp/janephp/commit/0ea379deab5689475d62653b408de62ad3611c7a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/janephp/janephp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/janephp/janephp/releases/tag/v7.12.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116", "CWE-94", "CWE-95" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T16:12:11Z",
    "nvd_published_at" : "2026-11-18T22:17:22Z"
  }
}