Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-52810 Overview
CVE-2024-52810 is a prototype pollution vulnerability in @intlify/shared, a shared library used across the intlify project and the Vue I18n ecosystem. Version 10.0.4 exposes the lib.deepCopy function to attacker-controlled input containing an Object.prototype setter. An attacker can introduce or modify properties on the global prototype chain, which at minimum causes denial of service. Depending on how downstream applications consume the library, polluted properties may propagate into sensitive Node.js APIs such as exec or eval, enabling arbitrary command execution within the application context. The issue is tracked as [CWE-1321] and is fixed in versions 9.14.2 and 10.0.5.
Critical Impact
Attackers can poison Object.prototype through deepCopy, triggering denial of service and potentially enabling arbitrary command execution when polluted properties reach sensitive sinks.
Affected Products
- @intlify/shared version 10.0.4 and prior 10.x releases
- @intlify/shared versions prior to 9.14.2 in the 9.x branch
- Vue I18n and other intlify project packages that depend on the affected @intlify/shared releases
Discovery Timeline
- 2024-11-29 - CVE-2024-52810 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-52810
Vulnerability Analysis
The deepCopy helper in @intlify/shared recursively walks a source object and assigns properties onto a destination object. When the function does not restrict assignment to own, enumerable properties and does not use a null-prototype destination, keys such as __proto__ or constructor.prototype are treated as regular properties. Writing to those keys mutates Object.prototype, which is shared by every object in the Node.js runtime.
Because intlify is commonly deployed in server-side rendering pipelines and build tooling, user-controlled locale messages or translation payloads can reach deepCopy without sanitization. A polluted prototype can inject default values into option objects passed later to child process execution, template compilation, or configuration loading, converting a prototype pollution into command injection in applications that forward such options to child_process.exec or eval.
Root Cause
The root cause is unsafe recursive property assignment in deepCopy without filtering dangerous keys and without allocating destination objects via Object.create(null). The fix introduces a create helper imported alongside existing utilities in packages/core-base/src/compilation.ts and packages/core-base/src/context.ts, replacing default object literals with prototype-less objects.
Attack Vector
Exploitation is network-reachable when the intlify consumer accepts untrusted JSON that is later merged, cloned, or deep-copied through the vulnerable helper. No authentication or user interaction is required when the entry point is a public API that forwards request bodies into i18n configuration.
// Security patch in packages/core-base/src/compilation.ts
detectHtmlTag
} from '@intlify/message-compiler'
import {
+ create,
format,
hasOwn,
isBoolean,
Source: GitHub commit 9f20909
// Security patch in packages/core-base/src/context.ts
import {
assign,
+ create,
isArray,
isBoolean,
isFunction,
Source: GitHub commit 9f20909
The create helper constructs objects with a null prototype, so later property writes cannot traverse into Object.prototype.
Detection Methods for CVE-2024-52810
Indicators of Compromise
- Unexpected properties appearing on built-in object instances at runtime, such as debug flags or shell options that no application code sets.
- Application logs showing child process invocations with arguments or environment variables that match keys from untrusted translation payloads.
- Repeated TypeError or RangeError exceptions in i18n request handlers consistent with denial-of-service attempts against deepCopy.
Detection Strategies
- Perform a software composition analysis (SCA) scan to flag any @intlify/shared dependency at 10.0.4 or earlier 9.x releases.
- Add runtime assertions in staging that compare Object.prototype keys before and after processing untrusted locale data.
- Review HTTP request logs for JSON bodies containing __proto__, constructor, or prototype keys submitted to endpoints that touch i18n configuration.
Monitoring Recommendations
- Instrument Node.js processes with runtime application self-protection (RASP) or --frozen-intrinsics where feasible to catch prototype mutations.
- Alert on new or unusual spawn events from Node.js workers that host intlify-based rendering pipelines.
- Correlate dependency inventory with CVE feeds so new disclosures affecting intlify packages trigger ticketed review.
How to Mitigate CVE-2024-52810
Immediate Actions Required
- Upgrade @intlify/shared to 9.14.2 on the 9.x branch or 10.0.5 on the 10.x branch.
- Audit every direct and transitive dependency that pulls in intlify packages, including vue-i18n and server-side rendering frameworks.
- Reject or sanitize incoming JSON that contains __proto__, prototype, or constructor keys before it reaches i18n processing code.
Patch Information
The maintainers released fixes in @intlify/shared9.14.2 and 10.0.5. The remediation introduces the create helper to allocate null-prototype objects inside packages/core-base/src/compilation.ts and packages/core-base/src/context.ts. Full details are available in GitHub Security Advisory GHSA-hjwq-mjwj-4x6c and the corresponding GitHub commit 9f20909.
Workarounds
- No vendor-supplied workarounds exist; upgrading is required.
- As a compensating control, wrap untrusted input in a sanitizer that strips prototype-polluting keys prior to invoking any intlify API.
# Upgrade @intlify/shared to a patched release
npm install @intlify/shared@10.0.5
# or for the 9.x branch
npm install @intlify/shared@9.14.2
# Verify no vulnerable versions remain in the dependency tree
npm ls @intlify/shared
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

