{"items":[{"id":"NVI-00015193","kind":"vulnerability","title":"swagger-typescript-api vulnerable to code injection via unescaped enum string values","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-5f94-x226-ccpm","CVE-2026-54664"],"plain_summary":"GitHub lists this reviewed advisory for swagger-typescript-api. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-3acd978b9bb43ca0ec05fe535418ec13"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-07-29T14:33:02.000Z","value":"8.3 high","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-3acd978b9bb43ca0ec05fe535418ec13"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-3acd978b9bb43ca0ec05fe535418ec13","url":"https://github.com/advisories/GHSA-5f94-x226-ccpm","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-5f94-x226-ccpm","publisher":"GitHub Advisory Database","observed_at":"2026-11-03T09:59:04.660Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-3acd978b9bb43ca0ec05fe535418ec13"],"technology":"swagger-typescript-api","known_exclusions":[],"conditions_summary":"### Summary\n\n`swagger-typescript-api` interpolates `components.schemas.*.enum[i]` string values into the body of generated TypeScript `enum` declarations without escaping. A malicious enum value can close the enclosing string literal, terminate the enum body, and inject a bare-block IIFE that executes at **module load** the first time the generated client is imported. The trigger requires no instantiation and no method call — only an `import` of the generated module. The attacker controls the OpenAPI spec (remote `--url`, third-party / public spec, multi-tenant platform); the victim is whoever runs the generator and imports the result (the developer, their CI runner, or any downstream consumer of the generated package). Impact is arbitrary code execution with the importing process's privileges — read any file the importer can read, write any file, exfiltrate secrets, etc.\n\n### Details\n\nThe root cause is `Ts.StringValue` in `src/configuration.ts:250`:\n\n```ts\nStringValue: (content: unknown) => `\"${content}\"`,\n```\n\nIt wraps a value in double quotes with **zero escaping** — no handling of `\"`, `\\`, newlines, or anything else. The codebase's only escape function (`escapeJSDocContent` in","public_affected_ranges":["<= 13.12.1"]}],"null_published_at":"2026-11-03T10:03:26.559Z","source_updated_at":"2026-07-29T14:33:02.000Z","source_disclosed_at":"2026-07-29T14:33:00.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-03T09:59:04.660Z"}],"next_cursor":null,"snapshot_revision":"42594"}