SQL Injection vulnerability in TypeORM before 0.3.26 via crafted request to…
Priority LOW 36CWE-89Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-89.
Summary
SQL Injection vulnerability in TypeORM before 0.3.26 via crafted request to repository.save or repository.update due to the sqlstring call using stringifyObjects default to false.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00265 18th percentileScored 2026-11-07
Fix Fixed typeorm (npm): 0.3.26Red Hat: 2 advisories
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | typeorm (npm) | before 0.3.26 | 0.3.26 | Patch available | GHSA-q2pj-6v73-8rgj |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- typeorm (npm) Vendor— Affected before 0.3.26 Fixed in 0.3.26 Patch available GHSA-q2pj-6v73-8rgj
Remediation
- Fix · GHSA-q2pj-6v73-8rgj typeorm (npm) Fixed in 0.3.26 Advisory →
Red Hat 2 advisories
- RHSA-2025:22861 Released 2025-12-08 · Red Hat rating ImportantRed Hat Developer Hub 1.8.1 release.
- Red Hat Developer Hub 1.8 registry.redhat.io/rhdh/rhdh-hub-rhel9
- RHSA-2025:22404 Released 2025-12-01 · Red Hat rating ImportantRed Hat Developer Hub 1.7.3 release.
- Red Hat Developer Hub 1.7 registry.redhat.io/rhdh/rhdh-hub-rhel9
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Developer Hub 1.7 | Fixed | RHSA-2025:22404 |
| Red Hat Developer Hub 1.8 | Fixed | RHSA-2025:22861 |
Not affected: 2 products
- Red Hat Developer Hub 1.7
- Red Hat Developer Hub 1.8
Timeline
- 2026-10-02 Threatist record created from CVE-2025-60542
- 2026-10-03 Alias added: GHSA-q2pj-6v73-8rgj
References
Other 10
- https://github.com/typeorm/typeorm/releases?q=security&expanded=true
- https://github.com/typeorm/typeorm/pull/11574
- https://github.com/typeorm/typeorm/releases/tag/0.3.26
- https://medium.com/@alizada.cavad/cve-2025-60542-typeorm-mysql-sqli-0-3-25-a1b32bc60453
- https://github.com/typeorm/typeorm/commit/d57fe3bd8578b0b8f9847647fd046bccf825a7ef
- https://github.com/mysqljs/sqlstring/blob/cd528556b4b6bcf300c3db515026935dedf7cfa1/lib/SqlString.js#L54
- https://github.com/sidorares/node-mysql2/blob/e359f454a76ba5dc31b91adf7bdb4099ca317bb5/lib/base/connection.js#L524
- https://github.com/sidorares/node-mysql2/blob/e359f454a76ba5dc31b91adf7bdb4099ca317bb5/lib/connection_config.js#L124
- https://github.com/typeorm/typeorm/blob/0.3.25/src/driver/mysql/MysqlConnectionOptions.ts
- http://github.com/typeorm/typeorm
Sources
- CVE-2025-60542 · CVE Program
- CVE-2025-60542 · NVD
- FIRST EPSS
- GHSA-q2pj-6v73-8rgj · GitHub Advisory Database · CC BY 4.0
- CVE-2025-60542 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences