THREATOPS
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()

medgithub_advisoriesPublished 2026-11-10

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

Indicators of compromise

Original source: https://github.com/advisories/GHSA-6972-9mcm-vhwj