{"id":"CVE-2023-45811","aliases":["CVE-2023-45811","GHSA-jg82-xh3w-rhxx"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype pollution vulnerability leading to arbitrary code execution in synchrony deobfuscator","summary":"Synchrony deobfuscator is a javascript cleaner & deobfuscator.  A `__proto__` pollution vulnerability exists in versions before v2.4.4. Successful exploitation could lead to arbitrary code execution. A `__proto__` pollution vulnerability exists in the `LiteralMap` transformer allowing crafted input to modify properties in the Object prototype. A fix has been released in `deobfuscator@2.4.4`. Users are advised to upgrade. Users unable to upgrade should launch node with the [--disable-proto=delete][disable-proto] or [--disable-proto=throw][disable-proto] flags","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Synchrony deobfuscator is a javascript cleaner & deobfuscator.  A `__proto__` pollution vulnerability exists in versions before v2.4.4. Successful exploitation could lead to arbitrary code execution. A `__proto__` pollution vulnerability exists in the `LiteralMap` transformer allowing crafted input to modify properties in the Object prototype. A fix has been released in `deobfuscator@2.4.4`. Users are advised to upgrade. Users unable to upgrade should launch node with the [--disable-proto=delete][disable-proto] or [--disable-proto=throw][disable-proto] flags","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA `__proto__` pollution vulnerability exists in synchrony versions before v2.4.4. Successful exploitation could lead to arbitrary code execution.\n\n### Summary\n\nA `__proto__` pollution vulnerability exists in the [LiteralMap] transformer allowing crafted input to modify properties in the Object prototype.\n\nWhen executing in Node.js, due to use of the `prettier` module, defining a `parser` property on `__proto__` with a path to a JS module on disk [causes a `require` of the value][prettier/src/main/parser.js] which can lead to arbitrary code execution.\n\n### Patch\n\nA fix has been released in `deobfuscator@2.4.4`.\n\n### Mitigation\n\n- Upgrade synchrony to v2.4.4\n- Launch node with the [--disable-proto=delete][disable-proto] or [--disable-proto=throw][disable-proto] flag\n\n### Proof of Concept\n\nCraft a malicious input file named `poc.js` as follows:\n\n```js\n// Malicious code to be run after this file is imported. Logs the result of shell command \"dir\" to the console.\nconsole.log(require('child_process').execSync('dir').toString())\n\n// Synchrony exploit PoC\n{\n  var __proto__ = { parser: 'poc.js' }\n}\n```\n\nThen, run `synchrony poc.js` from the same directory as the malicious file.\n\n### Credits\n\nThis vulnerability was found and disclosed by [William Khem-Marquez][SteakEnthusiast].\n\n[LiteralMap]: src/transformers/literalmap.ts\n[SteakEnthusiast]: https://github.com/SteakEnthusiast\n[disable-proto]: https://nodejs.dev/en/api/v20/cli/#--disable-protomode\n[prettier/src/main/parser.js]: https://github.com/prettier/prettier/blob/2.5.1/src/main/parser.js#L53-L63","format":"markdown","source":"ghsa"},{"lang":"es","text":"Synchrony deofuscator es un limpiador y desofuscador de JavaScript. Existe una vulnerabilidad de contaminación `__proto__` en versiones anteriores a la v2.4.4. Una explotación exitosa podría conducir a la ejecución de código arbitrario. Existe una vulnerabilidad de contaminación `__proto__` en el transformador `LiteralMap` que permite que una entrada manipulada modifique las propiedades en el prototipo del objeto. Se ha publicado una solución en `deobfuscator@2.4.4`. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben iniciar el nodo con los indicadores [--disable-proto=delete][disable-proto] o [--disable-proto=throw][disable-proto]","source":"nvd"}],"published":"2023-10-17T22:37:20.249Z","modified":"2026-06-17T06:29:34.340Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":">= 2.0.1, < 2.4.4","status":"affected"}],"vendor":"relative","product":"synchrony","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"2.0.1","fixed":"2.4.4","status":"affected"}],"vendor":"relative","product":"synchrony","cpe":"cpe:2.3:a:relative:synchrony:*:*:*:*:*:nodejs:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.1","status":"affected","fixed":"2.4.4"}],"ecosystem":"npm","package":"deobfuscator","purl":"pkg:npm/deobfuscator","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.1","fixed":"2.4.4"}],"vendor":"relative","product":"synchrony","cpe":"cpe:2.3:a:relative:synchrony:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/relative/synchrony/security/advisories/GHSA-jg82-xh3w-rhxx","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/relative/synchrony/commit/b583126be94c4db7c5a478f1c5204bfb4162cf40","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/relative/synchrony/security/advisories/src/transformers/literalmap.ts","tags":["broken-link","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45811","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/relative/synchrony","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-09-13T15:26:06.582Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-45811","url":"https://www.cve.org/CVERecord?id=CVE-2023-45811","licence":"CVE Terms of Use","modified":"2024-09-13T15:29:09.089Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jg82-xh3w-rhxx","url":"https://github.com/advisories/GHSA-jg82-xh3w-rhxx","licence":"CC-BY-4.0","modified":"2025-07-22T15:37:30.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-45811","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45811","licence":"Public domain","modified":"2026-06-17T06:29:34.340Z"}],"updatedAt":"2026-11-25T22:58:28.895Z","epss":{"score":0.00547,"percentile":0.39438,"date":"2026-11-30T12:00:22.000Z"}}