CVE-2025-60542 json
TypeORM vulnerable to SQL injection via crafted request to repository.save or repository.update
published 2025-10-29 12 mo ago modified 2026-10-27 13 d ago also GHSA-q2pj-6v73-8rgj , EUVD-2025-36689
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 18%
- public exploits
- 0
- none known
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.
Patch / fix
- npm typeorm 0.3.26
- github.com/typeorm/typeorm@d57fe3b commit
- github.com/typeorm/typeorm#11574 pull request
- github.com/typeorm/typeorm/releases/tag/0.3.26 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-60542 updated cvss 8.2
TypeORM: SQL Injection via crafted request to repository.save or repository.update
-
Red Hat Developer Hub 1.7 rhdh 1.7.3-1764237628fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2025:22404
-
Red Hat Developer Hub 1.8 rhdh 1.8.1-1764857949fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2025:22861
-
Red Hat Developer Hub 1.7 rhdh 1.7.3-1764235280, rhdh 1.7.3-1764255796 Red Hat Developer Hub 1.8 rhdh 1.8.1-1764708361, rhdh 1.8.1-1764862616not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 12 mo ago
Exploit prediction
0.27% chance of exploitation in the next 30 days, higher than 18% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | typeorm | <0.3.26 |
0.3.26 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/typeorm/typeorm/pull/11574
web
-
github.com
/typeorm/typeorm/commit/d57fe3bd8578b0b8f9847647fd046bccf825a7ef
web
-
github.com
/typeorm/typeorm/releases?q=security&expanded=true
web
-
github.com
/typeorm/typeorm/releases/tag/0.3.26
web
-
medium.com
/@alizada.cavad/cve-2025-60542-typeorm-mysql-sqli-0-3-25-a1b32bc60453
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-60542
advisory
-
github.com
/mysqljs/sqlstring/blob/cd528556b4b6bcf300c3db515026935dedf7cfa1/lib/SqlString.js#L54
web
-
github.com
/sidorares/node-mysql2/blob/e359f454a76ba5dc31b91adf7bdb4099ca317bb5/lib/base/connection.js#L524
web
-
github.com
/sidorares/node-mysql2/blob/e359f454a76ba5dc31b91adf7bdb4099ca317bb5/lib/connection_config.js#L124
web
-
github.com
/typeorm/typeorm/blob/0.3.25/src/driver/mysql/MysqlConnectionOptions.ts
web
-
github.com
/typeorm/typeorm
package
Sources
- CVE List CVE-2025-60542
- GitHub Advisory GHSA-q2pj-6v73-8rgj
- NVD CVE-2025-60542
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.