1. Archivio CVE
  2. 2026
  3. CVE-2026-97151

CVE-2026-97151

8.4 Gravità alta CVSS v4.0 · fonte NVD CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X 8.4 – Alta

Descrizione

mammoth (aka mammoth.js) before 1.12.2 is vulnerable to prototype pollution when reading the styles defined in a document. Converting a crafted .docx file allows an attacker to add arbitrary properties to Object.prototype. In 1.11.0 through 1.12.1, applications that convert further documents in the same process and return the converted HTML can also disclose the contents of local server files (to the party supplying the documents) by setting externalFileAccess to true.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
mwilliamson mammoth.js < 1.12.2 –

Tipo di vulnerabilità

CWE-1321 Prototype pollution: modifica non controllata del prototipo di un oggetto

Il prodotto riceve dall’esterno gli attributi da impostare in un oggetto, ma non impedisce che vengano modificati anche quelli del suo prototipo, alterando il comportamento di tutta l’applicazione (tipico di JavaScript).

Impatto sui sistemi

AmbitoImpatto
Riservatezza, Integrità, Disponibilità Leggere i dati dell’applicazione, Modificare i dati dell’applicazione
Disponibilità Interruzione del servizio: arresto o riavvio

Come si previene

Sviluppo By freezing the object prototype first (for example, Object.freeze(Object.prototype)), modification of the prototype becomes impossible.
Architettura e progettazione By blocking modifications of attributes that resolve to object prototype, such as proto or prototype, this weakness can be mitigated.
Sviluppo · Validazione dell’input When handling untrusted objects, validating using a schema can be used.
Sviluppo By using an object without prototypes (via Object.create(null) ), adding object prototype attributes by accessing the prototype via the special attributes becomes impossible, mitigating this weakness.
Sviluppo Map can be used instead of objects in most cases. If Map methods are used instead of object attributes, it is not possible to access the object prototype or modify it.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 586 CVE di tipo CWE-1321, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org