THREAT OPS › Threat News › [GHSA] GHSA-6972-9mcm-vhwj (medium) — Mongoose: Prototype pollution via Schema.prototype.virtual()
[GHSA] GHSA-6972-9mcm-vhwj (medium) — Mongoose: Prototype pollution via Schema.prototype.virtual()
GHSA-6972-9mcm-vhwj Severity: medium CVE: CVE-2026-125118
Mongoose: Prototype pollution via Schema.prototype.virtual()
### Summary
Prototype pollution via Schema.prototype.virtual() — the 2022 fix for CVE-2022-2564 / CVE-2022-24304 protected Schema.path()/add() but never virtual(), so the same class of bug is still exploitable in all maintained release lines.
### Details
In lib/schema.js, Sch
MITRE ATT&CK techniques
- JavaScriptT1059.007
Indicators of compromise
- CVE-2026-125118cve
- CVE-2022-2564cve
- CVE-2022-24304cve
Original source: https://github.com/advisories/GHSA-6972-9mcm-vhwj