{"items":[{"id":"NVI-00015223","kind":"vulnerability","title":" TypeORM: migration:generate template-literal code injection","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-2rp8-mm9q-fp49","CVE-2026-73651"],"plain_summary":"GitHub lists this reviewed advisory for typeorm, typeorm. 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-6ef179a27926d6e2323749fba6de0d7c"],"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-08-13T18:11:21.000Z","value":"5.7 medium","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-4373a19deaadfad473a6721d4bdbafa5"},{"kind":"CVSS","as_of":"2026-09-18T20:05:53.723Z","value":"5.7 MEDIUM (3.1)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-6ef179a27926d6e2323749fba6de0d7c"}],"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-4373a19deaadfad473a6721d4bdbafa5","url":"https://github.com/advisories/GHSA-2rp8-mm9q-fp49","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-2rp8-mm9q-fp49","publisher":"GitHub Advisory Database","observed_at":"2026-11-02T20:16:47.162Z"},{"id":"sr-6ef179a27926d6e2323749fba6de0d7c","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73651","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-73651","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-08T19:45:24.870Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-4373a19deaadfad473a6721d4bdbafa5"],"technology":"typeorm","known_exclusions":[],"conditions_summary":"### Summary\n\n`typeorm migration:generate` embeds database schema metadata into JS/TS template literals, escaping backticks but not `${...}`. An attacker who can write schema metadata (column comments, defaults, view definitions) achieves arbitrary code execution on the host that loads the generated migration.\n\n### Details\n\n`MigrationGenerateCommand.ts` (L117-138) wraps each SQL statement in a JS template literal, escaping only backticks:\n\n```typescript\n\"        await queryRunner.query(`\" +\n    upQuery.query.replaceAll(\"`\", \"\\\\`\") +\n    \"`\" + ...\n```\n\nIntrospected schema strings reach this sink through driver query runners:\n\n| Driver | Metadata source | Source |\n|---|---|---|\n| Postgres | column `DEFAULT`, `COMMENT`, `CHECK` constraints, view definitions | `PostgresQueryRunner.ts:1782`, `L1898`, `L2287`, [`L4125`](https://github.com/typeorm/typeorm/blob/bf47c9f/src/driver/postgres/Postgre","public_affected_ranges":["< 0.3.31"]},{"certainty":"source_listed","source_ids":["sr-4373a19deaadfad473a6721d4bdbafa5"],"technology":"typeorm","known_exclusions":[],"conditions_summary":"### Summary\n\n`typeorm migration:generate` embeds database schema metadata into JS/TS template literals, escaping backticks but not `${...}`. An attacker who can write schema metadata (column comments, defaults, view definitions) achieves arbitrary code execution on the host that loads the generated migration.\n\n### Details\n\n`MigrationGenerateCommand.ts` (L117-138) wraps each SQL statement in a JS template literal, escaping only backticks:\n\n```typescript\n\"        await queryRunner.query(`\" +\n    upQuery.query.replaceAll(\"`\", \"\\\\`\") +\n    \"`\" + ...\n```\n\nIntrospected schema strings reach this sink through driver query runners:\n\n| Driver | Metadata source | Source |\n|---|---|---|\n| Postgres | column `DEFAULT`, `COMMENT`, `CHECK` constraints, view definitions | `PostgresQueryRunner.ts:1782`, `L1898`, `L2287`, [`L4125`](https://github.com/typeorm/typeorm/blob/bf47c9f/src/driver/postgres/Postgre","public_affected_ranges":[">= 1.0.0, < 1.1.0"]}],"null_published_at":"2026-11-08T19:53:48.746Z","source_updated_at":"2026-08-13T18:11:21.000Z","source_disclosed_at":"2026-07-21T21:59:23.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-11-02T20:16:47.162Z"},{"id":"NVI-00015223","kind":"vulnerability","title":" TypeORM: migration:generate template-literal code injection","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2rp8-mm9q-fp49","CVE-2026-73651"],"plain_summary":"GitHub lists this reviewed advisory for typeorm, typeorm. 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-4373a19deaadfad473a6721d4bdbafa5"],"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-08-13T18:11:21.000Z","value":"5.7 medium","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-4373a19deaadfad473a6721d4bdbafa5"}],"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-4373a19deaadfad473a6721d4bdbafa5","url":"https://github.com/advisories/GHSA-2rp8-mm9q-fp49","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-2rp8-mm9q-fp49","publisher":"GitHub Advisory Database","observed_at":"2026-11-02T20:16:47.162Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-4373a19deaadfad473a6721d4bdbafa5"],"technology":"typeorm","known_exclusions":[],"conditions_summary":"### Summary\n\n`typeorm migration:generate` embeds database schema metadata into JS/TS template literals, escaping backticks but not `${...}`. An attacker who can write schema metadata (column comments, defaults, view definitions) achieves arbitrary code execution on the host that loads the generated migration.\n\n### Details\n\n`MigrationGenerateCommand.ts` (L117-138) wraps each SQL statement in a JS template literal, escaping only backticks:\n\n```typescript\n\"        await queryRunner.query(`\" +\n    upQuery.query.replaceAll(\"`\", \"\\\\`\") +\n    \"`\" + ...\n```\n\nIntrospected schema strings reach this sink through driver query runners:\n\n| Driver | Metadata source | Source |\n|---|---|---|\n| Postgres | column `DEFAULT`, `COMMENT`, `CHECK` constraints, view definitions | `PostgresQueryRunner.ts:1782`, `L1898`, `L2287`, [`L4125`](https://github.com/typeorm/typeorm/blob/bf47c9f/src/driver/postgres/Postgre","public_affected_ranges":["< 0.3.31"]},{"certainty":"source_listed","source_ids":["sr-4373a19deaadfad473a6721d4bdbafa5"],"technology":"typeorm","known_exclusions":[],"conditions_summary":"### Summary\n\n`typeorm migration:generate` embeds database schema metadata into JS/TS template literals, escaping backticks but not `${...}`. An attacker who can write schema metadata (column comments, defaults, view definitions) achieves arbitrary code execution on the host that loads the generated migration.\n\n### Details\n\n`MigrationGenerateCommand.ts` (L117-138) wraps each SQL statement in a JS template literal, escaping only backticks:\n\n```typescript\n\"        await queryRunner.query(`\" +\n    upQuery.query.replaceAll(\"`\", \"\\\\`\") +\n    \"`\" + ...\n```\n\nIntrospected schema strings reach this sink through driver query runners:\n\n| Driver | Metadata source | Source |\n|---|---|---|\n| Postgres | column `DEFAULT`, `COMMENT`, `CHECK` constraints, view definitions | `PostgresQueryRunner.ts:1782`, `L1898`, `L2287`, [`L4125`](https://github.com/typeorm/typeorm/blob/bf47c9f/src/driver/postgres/Postgre","public_affected_ranges":[">= 1.0.0, < 1.1.0"]}],"null_published_at":"2026-11-03T10:03:26.562Z","source_updated_at":"2026-08-13T18:11:21.000Z","source_disclosed_at":"2026-07-21T21:59:23.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-02T20:16:47.162Z"}],"next_cursor":null,"snapshot_revision":"42594"}