Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-57349
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 23:52 UTC · Revision 1
Source evidence
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.
osv:CVE-2025-57349
Complete source record
{
"id": "6ceb4b280b059b9527eebeffb85cbff84854bd5b87aef0186981a238da6ec742",
"url": "https://osv.dev/vulnerability/CVE-2025-57349",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2025-57349",
"summary": "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.",
"evidence": "osv:CVE-2025-57349",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-57349",
"aliases": [
"CVE-2025-57349",
"GHSA-xfqm-j7pc-xrfc"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/messageformat/messageformat",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "cd47ed7db2b7a4f5e21df4cd6284ae3f7dad05a1"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.3.0"
}
],
"source": "DESCRIPTION"
},
{
"cpe": "cpe:2.3:a:openjsf:messageformat:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.3.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"messageformat@2.2.1",
"messageformat@2.2.0",
"messageformat-website@2.1.1",
"messageformat-parser@4.1.1",
"messageformat-formatters@2.0.0",
"messageformat@2.1.0",
"messageformat-website@2.1.0",
"messageformat-parser@4.1.0",
"messageformat-loader@0.8.0",
"messageformat-loader-example@0.2.0",
"messageformat-convert@0.3.0",
"messageformat-cli@2.1.0",
"v1.0.1",
"0.2.1",
"0.3.0-0",
"0.2.0",
"v0.1.8",
"v0.1.7",
"v0.1.6",
"v0.1.5",
"v0.1.4",
"v0.1.1",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-57349.json"
}
}
],
"modified": "2026-10-28T02:30:24.424421226Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57349.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-57349",
"https://github.com/messageformat/messageformat/issues/452"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57349.json"
}
},
"related_cves": [
{
"value": "CVE-2025-57349",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 490987,
"published_at": "2025-09-24T00:00:00+00:00"
}