1. Archivio CVE
  2. 2025
  3. CVE-2025-57348

CVE-2025-57348

6.5 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L 6.5 – Media

Descrizione

The node-cube package (prior to version 5.0.0) contains a vulnerability in its handling of prototype chain initialization, which could allow an attacker to inject properties into the prototype of built-in objects. This issue, categorized under CWE-1321, arises from improper validation of user-supplied input in the package's resource initialization process. Successful exploitation may lead to denial of service or arbitrary code execution in affected environments. The vulnerability affects versions up to and including 5.0.0-beta.19, and no official fix has been released to date.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
node-cube node-cube < 5.0.0 node.js
node-cube node-cube 5.0.0 beta0 node.js
node-cube node-cube 5.0.0 beta1 node.js
node-cube node-cube 5.0.0 beta10 node.js
node-cube node-cube 5.0.0 beta11 node.js
node-cube node-cube 5.0.0 beta12 node.js
node-cube node-cube 5.0.0 beta13 node.js
node-cube node-cube 5.0.0 beta14 node.js
node-cube node-cube 5.0.0 beta15 node.js
node-cube node-cube 5.0.0 beta16 node.js
node-cube node-cube 5.0.0 beta17 node.js
node-cube node-cube 5.0.0 beta18 node.js
node-cube node-cube 5.0.0 beta19 node.js
node-cube node-cube 5.0.0 beta2 node.js
node-cube node-cube 5.0.0 beta3 node.js
node-cube node-cube 5.0.0 beta4 node.js
node-cube node-cube 5.0.0 beta5 node.js
node-cube node-cube 5.0.0 beta6 node.js
node-cube node-cube 5.0.0 beta8 node.js
node-cube node-cube 5.0.0 beta9 node.js

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 589 CVE di tipo CWE-1321, con andamento e prevenzione

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