Skip to content
Threat Feed

Tag

Code-Generation

4 briefs RSS
high advisory

Swagger-typescript-api Vulnerable to Authorization Token Exfiltration via Spec $ref

The `swagger-typescript-api` tool is vulnerable to authorization token exfiltration. When a developer provides an `--authorizationToken` to fetch an OpenAPI specification, the tool attaches this token to all subsequent HTTP requests made while resolving external `$ref` URLs within the spec. Critically, it lacks same-origin checks, allowing a malicious OpenAPI spec containing a `$ref` to an attacker-controlled URL to cause the authorization token (e.g., GitHub PAT, OAuth bearer) to be sent verbatim to the attacker. This credential disclosure provides an attacker with the same scope of access as the stolen token, affecting development environments, CI/CD pipelines, and multi-tenant SaaS platforms.

swagger-typescript-api credential-theft supply-chain software-development openapi api-security nodejs code-injection npm +2
1r 5t
high advisory

Datamodel Code Generator Vulnerable to SSRF via URL Parameter

The `datamodel-code-generator` tool, specifically versions from `0.9.1` up to `0.60.2`, is vulnerable to Server-Side Request Forgery (SSRF) when using the `--url` argument with the `[http]` extra installed, allowing attackers to access internal network resources and exfiltrate sensitive data into generated Python files.

datamodel-code-generator ssrf supply-chain code-generation python vulnerability
1r 3t 3i
high advisory

protobuf.js Prototype Pollution Leads to Code Generation Gadget

protobufjs versions 7.5.5 and earlier, as well as versions 8.0.0 through 8.0.1, are vulnerable to arbitrary JavaScript execution if Object.prototype has been polluted, allowing attackers to influence generated encode/decode functions.

protobufjs +1 prototype-pollution code-generation javascript
2r
high advisory

Babel Plugin Vulnerability Leads to Arbitrary Code Execution via Malicious Input

A maliciously crafted input to Babel's `@babel/plugin-transform-modules-systemjs` or `@babel/preset-env` with `modules: 'systemjs'` can cause the tool to generate arbitrary code execution.

@babel/plugin-transform-modules-systemjs +1 code-generation arbitrary-code-execution babel
2r 1t