Skip to content

CVE-2025-57349 messageformat has a prototype pollution vulnerability

HighCVSS 7.5 EPSS 0.40%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm messageformat(npm) < 2.3.0; < 3.0.0-beta.0 2.3.0, 3.0.0-beta.0 Fixed
openjsf messageformat < 2.3.0 2.3.0 Fixed

Affected products

ProductAffected versionsFixed in
npm messageformat(npm) < 2.3.0 2.3.0
openjsf messageformat < 2.3.0 2.3.0
npm messageformat(npm) < 3.0.0-beta.0 3.0.0-beta.0

References