{"id":"CVE-2024-52810","aliases":["CVE-2024-52810","GHSA-hjwq-mjwj-4x6c"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution in @intlify/shared >=9.7.0 <= 10.0.4","summary":"@intlify/shared is a shared library for the intlify project. The latest version of @intlify/shared (10.0.4) is vulnerable to Prototype Pollution through the entry function(s) lib.deepCopy. An attacker can supply a payload with Object.prototype setter to introduce or modify properties within the global prototype chain, causing denial of service (DoS) as the minimum consequence. Moreover, the consequences of this vulnerability can escalate to other injection-based attacks, depending on how the library integrates within the application. For instance, if the polluted property propagates to sensitive Node.js APIs (e.g., exec, eval), it could enable an attacker to execute arbitrary commands within the application's context. This issue has been addressed in versions 9.14.2, and 10.0.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@intlify/shared is a shared library for the intlify project. The latest version of @intlify/shared (10.0.4) is vulnerable to Prototype Pollution through the entry function(s) lib.deepCopy. An attacker can supply a payload with Object.prototype setter to introduce or modify properties within the global prototype chain, causing denial of service (DoS) as the minimum consequence. Moreover, the consequences of this vulnerability can escalate to other injection-based attacks, depending on how the library integrates within the application. For instance, if the polluted property propagates to sensitive Node.js APIs (e.g., exec, eval), it could enable an attacker to execute arbitrary commands within the application's context. This issue has been addressed in versions 9.14.2, and 10.0.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.","source":"cvelist"},{"lang":"en","text":"**Vulnerability type: Prototype Pollution**\n\n**Affected Package:**\n\nProduct: @intlify/shared\nVersion: 10.0.4\n\n\n**Vulnerability Location(s):**\n\n`node_modules/@intlify/shared/dist/shared.cjs:232:26`\n\n\n**Description:**\n\nThe latest version of `@intlify/shared (10.0.4)` is vulnerable to Prototype Pollution through the entry function(s) `lib.deepCopy`. An attacker can supply a payload with `Object.prototype` setter to introduce or modify properties within the global prototype chain, causing denial of service (DoS) the minimum consequence.\n\nMoreover, the consequences of this vulnerability can escalate to other injection-based attacks, depending on how the library integrates within the application. For instance, if the polluted property propagates to sensitive Node.js APIs (e.g., exec, eval), it could enable an attacker to execute arbitrary commands within the application's context.\n\n**PoC:**\n\n```bash\n// install the package with the latest version\n~$ npm install @intlify/shared@10.0.4\n// run the script mentioned below \n~$ node poc.js\n//The expected output (if the code still vulnerable) is below. \n// Note that the output may slightly differs from function to another.\nBefore Attack:  {}\nAfter Attack:  {\"pollutedKey\":123}\n```\n\n\n```js\n(async () => {\nconst lib = await import('@intlify/shared');\nvar someObj = {}\nconsole.log(\"Before Attack: \", JSON.stringify({}.__proto__));\ntry {\n// for multiple functions, uncomment only one for each execution.\nlib.deepCopy (JSON.parse('{\"__proto__\":{\"pollutedKey\":123}}'), someObj)\n} catch (e) { }\nconsole.log(\"After Attack: \", JSON.stringify({}.__proto__));\ndelete Object.prototype.pollutedKey;\n})();\n```\n\n**References**\n\n[Prototype Pollution Leading to Remote Code Execution](https://research.securitum.com/prototype-pollution-rce-kibana-cve-2019-7609/) - An example of how prototype pollution can lead to command code injection.\n\n[OWASP Prototype Pollution Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Prototype_Pollution_Prevention_Cheat_Sheet.html) - Best practices for preventing prototype pollution.\n\n[PortSwigger Guide on Preventing Prototype Pollution](https://portswigger.net/web-security/prototype-pollution/preventing) - A detailed guide to securing your applications against prototype pollution.","format":"markdown","source":"ghsa"},{"lang":"es","text":"@E58intlify/shared es una librería compartida para el proyecto intlify. La última versión de @intlify/shared (10.0.4) es vulnerable a la contaminación de prototipos a través de la(s) función(es) de entrada lib.deepCopy. Un atacante puede proporcionar un payload con el definidor Object.prototype para introducir o modificar propiedades dentro de la cadena de prototipos global, lo que provoca una denegación de servicio (DoS) como consecuencia mínima. Además, las consecuencias de esta vulnerabilidad pueden escalar a otros ataques basados ??en inyección, según cómo se integre la librería dentro de la aplicación. Por ejemplo, si la propiedad contaminada se propaga a las API de Node.js sensibles (p. ej., exec, eval), podría permitir que un atacante ejecute comandos arbitrarios dentro del contexto de la aplicación. Este problema se ha solucionado en las versiones 9.14.2 y 10.0.5. Se recomienda a los usuarios que actualicen. No existen workarounds conocidos para esta vulnerabilidad.E57","source":"nvd"}],"published":"2024-11-29T18:36:08.638Z","modified":"2026-06-17T08:07:40.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"MEDIUM"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":">= 9.7.0,  < 9.14.2","status":"affected"},{"version":">= 10.0.0, < 10.0.5","status":"affected"}],"vendor":"intlify","product":"vue-i18n","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"9.7.0","status":"affected"},{"type":"custom","introduced":"0","fixed":"9.14.2","status":"affected"},{"type":"custom","introduced":"0","lastAffected":"10.0.0","status":"affected"},{"type":"custom","introduced":"0","fixed":"10.0.5","status":"affected"}],"vendor":"intlify","product":"vue-i18n","cpe":"cpe:2.3:a:intlify:vue-i18n:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"9.7.0","status":"affected","fixed":"9.14.2"}],"ecosystem":"npm","package":"@intlify/shared","purl":"pkg:npm/%40intlify/shared","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.7.0","status":"affected","fixed":"9.14.2"}],"ecosystem":"npm","package":"@intlify/vue-i18n-core","purl":"pkg:npm/%40intlify/vue-i18n-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.7.0","status":"affected","fixed":"9.14.2"}],"ecosystem":"npm","package":"vue-i18n","purl":"pkg:npm/vue-i18n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.5"}],"ecosystem":"npm","package":"petite-vue-i18n","purl":"pkg:npm/petite-vue-i18n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.5"}],"ecosystem":"npm","package":"@intlify/shared","purl":"pkg:npm/%40intlify/shared","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.5"}],"ecosystem":"npm","package":"@intlify/vue-i18n-core","purl":"pkg:npm/%40intlify/vue-i18n-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.5"}],"ecosystem":"npm","package":"vue-i18n","purl":"pkg:npm/vue-i18n","source":"ghsa"}],"references":[{"url":"https://github.com/intlify/vue-i18n/security/advisories/GHSA-hjwq-mjwj-4x6c","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/intlify/vue-i18n/commit/9f20909ef8c9232a1072d7818e12ed6d6451024d","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52810","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/intlify/vue-i18n","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-12-03T14:04:45.075Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-52810","url":"https://www.cve.org/CVERecord?id=CVE-2024-52810","licence":"CVE Terms of Use","modified":"2024-12-03T14:06:41.359Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hjwq-mjwj-4x6c","url":"https://github.com/advisories/GHSA-hjwq-mjwj-4x6c","licence":"CC-BY-4.0","modified":"2024-12-02T17:42:18.331Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-52810","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52810","licence":"Public domain","modified":"2026-06-17T08:07:40.110Z"}],"updatedAt":"2026-11-25T22:58:49.552Z","epss":{"score":0.00767,"percentile":0.56721,"date":"2026-12-01T12:00:22.000Z"}}