CVE-2025-57349
JSON

7.5high

messageformat has a prototype pollution vulnerability

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-xfqm-j7pc-xrfc

Description

The messageformat package, an implementation of the Unicode MessageFormat 2 specification for JavaScript, is vulnerable to prototype pollution due to improper handling of message key paths in versions prior to 2.3.0. The flaw arises when processing nested message keys containing special characters (e.g., __proto__ ), which can lead to unintended modification of the JavaScript Object prototype. This vulnerability may allow a remote attacker to inject properties into the global object prototype via specially crafted message input, potentially causing denial of service or other undefined behaviors in applications using the affected component.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
messageformat (npm)before 3.0.0-beta.0GitHub Advisory Database
openjsf messageformatbefore 2.3.0NVD

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U

Classification

CWE-1321

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

The messageformat package, an implementation of the Unicode MessageFormat 2 specification for JavaScript, is vulnerable to prototype pollution due to improper handling of message key paths in versions prior to 2.3.0. The flaw arises when processing nested message keys containing special characters (e.g., __proto__ ), which can lead to unintended modification of the JavaScript Object prototype. This vulnerability may allow a remote attacker to inject properties into the global object prototype via specially crafted message input, potentially causing denial of service or other undefined behaviors in applications using the affected component.

NVD (es)

El paquete messageformat, una implementación de la especificación Unicode MessageFormat 2 para JavaScript, es vulnerable a la Contaminación de Prototipos debido a un manejo inadecuado de las rutas de claves de mensajes en versiones anteriores a la 2.3.0. La falla surge al procesar claves de mensajes anidadas que contienen caracteres especiales (p. ej., __proto__), lo que puede llevar a una modificación no intencionada del prototipo de objeto de JavaScript. Esta vulnerabilidad puede permitir a un atacante remoto inyectar propiedades en el prototipo de objeto global a través de una entrada de mensaje especialmente diseñada, lo que podría causar una denegación de servicio u otros comportamientos indefinidos en aplicaciones que utilizan el componente afectado.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-57349 changed 2025-09-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-xfqm-j7pc-xrfc changed 2025-09-25CC-BY-4.0
NVDCVE-2025-57349 changed 2026-06-17Public domain