Janephp
Monthly
PHP code injection in Jane's open-api-3 generator (jane-php, versions prior to 7.12.0) lets attacker-controlled text in an OpenAPI parameter description break out of a generated PHPDoc block and inject live PHP into the generated Client/Endpoint class body, including an attacker-supplied __construct that executes when the SDK client is instantiated. The GHSA advisory confirms the issue is verified on 7.11.2 / PHP 8.1 and publishes a proof-of-concept reproduction (reproduce.sh, gen.php, make_spec.py), so a public PoC reference exists; it is not verified as working exploit code and there is no CISA KEV entry - the vuln.today Decision label is act_now and the supplied CVSS 4.0 vector scores 9.3, while our assessed CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) reflects that a developer must run the generator and then instantiate the generated client. Exploitation is not a request-path attack: the attacker must influence the OpenAPI document that is fed to the generator, and only applications that build and then use SDKs from such untrusted specifications are exposed, with arbitrary PHP running at the consuming application's privileges. The vendor-released patch is version 7.12.0.
Generated-SDK code injection in Jane PHP's open-api-3 generator (7.11.2 and earlier) lets an attacker who can influence the OpenAPI document being consumed place arbitrary PHP into the generated client, which then executes with the consuming application's privileges whenever that client is instantiated. The trigger is a query parameter name containing a PHPDoc `*/` sequence that closes the generated docblock early and lands in class-body position, allowing an injected `__construct` method to run on every client instantiation - reached by unauthenticated remote attackers per the CVSS 4.0 vector, but only after the victim regenerates and uses a client built from the tainted spec. There is no CISA KEV entry, but a public PoC reference (reproduce.sh along with gen.php and make_spec.py) ships with the GitHub advisory and the project's priority assessment is act_now; realistic exposure is limited to workflows that generate SDKs from untrusted, third-party, or tampered specifications rather than fully internal, trusted specs.
Jane PHP (janephp) prior to 7.12.0 fetches unresolved $ref targets with file_get_contents() during code generation without restricting the URI scheme or the resolved local path, so an attacker-influenced OpenAPI or JSON Schema document can make the generator issue HTTP/HTTPS requests to attacker-chosen or internal services (including cloud metadata endpoints) or read arbitrary local JSON/YAML files via absolute or parent-relative paths, inlining whatever comes back into the generated PHP. The flaw is build/CI-time rather than runtime: the victim must run Jane against the malicious specification, which is why the assessed CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N (high confidentiality, low integrity, no availability impact). No CISA KEV entry and no confirmed working exploit are associated with this issue, though a public PoC reference (reproduce.sh, make_spec.py, gen.php) accompanies the GitHub advisory and maintainers verified the fetch and traversal behaviour on 7.11.2 with PHP 8.1; the priority is to schedule the 7.12.0 upgrade this week and to treat third-party specs in generation pipelines as untrusted input.
Arbitrary PHP execution in Jane's open-api-3 code generator (jane-php/open-api-3, all versions before 7.12.0, verified on 7.11.2) allows an attacker who can influence an OpenAPI document's header parameter name to break out of a generated PHPDoc block and plant a live __construct method inside the generated Client class. Because the injected constructor runs the moment the consuming application instantiates the generated client, an application that generates an SDK from an attacker-influenced spec and then uses it executes attacker PHP with that application's privileges. The vendor CVSS 4.0 base score is 9.3 (AV:N/AC:L/AT:N/PR:N/UI:N, full C:H/I:H/A:H), the independent assessment scores 9.3-equivalent impact with UI:R because the victim must run the generator and instantiate the result, and the vuln.today decision label is act_now; the advisory ships a public reproduction script, though it is not verified here as general-purpose exploit code. The flaw sits behind a build-time chain of trust rather than in a deployed endpoint, so environments that only generate clients from trusted internal specs are not exposed.
PHP code injection in Jane's open-api-3 generator (jane-php, versions prior to 7.12.0) lets attacker-controlled text in an OpenAPI parameter description break out of a generated PHPDoc block and inject live PHP into the generated Client/Endpoint class body, including an attacker-supplied __construct that executes when the SDK client is instantiated. The GHSA advisory confirms the issue is verified on 7.11.2 / PHP 8.1 and publishes a proof-of-concept reproduction (reproduce.sh, gen.php, make_spec.py), so a public PoC reference exists; it is not verified as working exploit code and there is no CISA KEV entry - the vuln.today Decision label is act_now and the supplied CVSS 4.0 vector scores 9.3, while our assessed CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) reflects that a developer must run the generator and then instantiate the generated client. Exploitation is not a request-path attack: the attacker must influence the OpenAPI document that is fed to the generator, and only applications that build and then use SDKs from such untrusted specifications are exposed, with arbitrary PHP running at the consuming application's privileges. The vendor-released patch is version 7.12.0.
Generated-SDK code injection in Jane PHP's open-api-3 generator (7.11.2 and earlier) lets an attacker who can influence the OpenAPI document being consumed place arbitrary PHP into the generated client, which then executes with the consuming application's privileges whenever that client is instantiated. The trigger is a query parameter name containing a PHPDoc `*/` sequence that closes the generated docblock early and lands in class-body position, allowing an injected `__construct` method to run on every client instantiation - reached by unauthenticated remote attackers per the CVSS 4.0 vector, but only after the victim regenerates and uses a client built from the tainted spec. There is no CISA KEV entry, but a public PoC reference (reproduce.sh along with gen.php and make_spec.py) ships with the GitHub advisory and the project's priority assessment is act_now; realistic exposure is limited to workflows that generate SDKs from untrusted, third-party, or tampered specifications rather than fully internal, trusted specs.
Jane PHP (janephp) prior to 7.12.0 fetches unresolved $ref targets with file_get_contents() during code generation without restricting the URI scheme or the resolved local path, so an attacker-influenced OpenAPI or JSON Schema document can make the generator issue HTTP/HTTPS requests to attacker-chosen or internal services (including cloud metadata endpoints) or read arbitrary local JSON/YAML files via absolute or parent-relative paths, inlining whatever comes back into the generated PHP. The flaw is build/CI-time rather than runtime: the victim must run Jane against the malicious specification, which is why the assessed CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N (high confidentiality, low integrity, no availability impact). No CISA KEV entry and no confirmed working exploit are associated with this issue, though a public PoC reference (reproduce.sh, make_spec.py, gen.php) accompanies the GitHub advisory and maintainers verified the fetch and traversal behaviour on 7.11.2 with PHP 8.1; the priority is to schedule the 7.12.0 upgrade this week and to treat third-party specs in generation pipelines as untrusted input.
Arbitrary PHP execution in Jane's open-api-3 code generator (jane-php/open-api-3, all versions before 7.12.0, verified on 7.11.2) allows an attacker who can influence an OpenAPI document's header parameter name to break out of a generated PHPDoc block and plant a live __construct method inside the generated Client class. Because the injected constructor runs the moment the consuming application instantiates the generated client, an application that generates an SDK from an attacker-influenced spec and then uses it executes attacker PHP with that application's privileges. The vendor CVSS 4.0 base score is 9.3 (AV:N/AC:L/AT:N/PR:N/UI:N, full C:H/I:H/A:H), the independent assessment scores 9.3-equivalent impact with UI:R because the victim must run the generator and instantiate the result, and the vuln.today decision label is act_now; the advisory ships a public reproduction script, though it is not verified here as general-purpose exploit code. The flaw sits behind a build-time chain of trust rather than in a deployed endpoint, so environments that only generate clients from trusted internal specs are not exposed.