{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-4800", "assignerOrgId": "ce714d77-add3-4f53-aff5-83d477b104bb", "state": "PUBLISHED", "assignerShortName": "openjs", "dateReserved": "2026-03-25T09:12:38.355Z", "datePublished": "2026-03-31T19:25:55.987Z", "dateUpdated": "2026-03-31T20:37:03.964Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "ce714d77-add3-4f53-aff5-83d477b104bb", "shortName": "openjs", "dateUpdated": "2026-03-31T19:25:55.987Z" }, "descriptions": [ { "lang": "en", "value": "Impact:\n\nThe fix for CVE-2021-23337 (https://github.com/advisories/GHSA-35jh-r3h4-6jhm) added validation for the variable option in _.template but did not apply the same validation to options.imports key names. Both paths flow into the same Function() constructor sink.\n\nWhen an application passes untrusted input as options.imports key names, an attacker can inject default-parameter expressions that execute arbitrary code at template compilation time.\n\nAdditionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function().\n\nPatches:\n\nUsers should upgrade to version 4.18.0.\n\nWorkarounds:\n\nDo not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.", "supportingMedia": [ { "type": "text/html", "base64": false, "value": "Impact:\n\nThe fix for CVE-2021-23337 (https://github.com/advisories/GHSA-35jh-r3h4-6jhm) added validation for the variable option in _.template but did not apply the same validation to options.imports key names. Both paths flow into the same Function() constructor sink.\n\nWhen an application passes untrusted input as options.imports key names, an attacker can inject default-parameter expressions that execute arbitrary code at template compilation time.\n\nAdditionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function().\n\nPatches:\n\nUsers should upgrade to version 4.18.0.\n\nWorkarounds:\n\nDo not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names." } ] } ], "affected": [ { "vendor": "lodash", "product": "lodash", "defaultStatus": "unaffected", "versions": [ { "versionType": "semver", "status": "affected", "version": "4.0.0", "lessThan": "4.18.0" }, { "versionType": "semver", "status": "unaffected", "version": "4.18.0" } ], "packageURL": "pkg:npm/lodash" }, { "vendor": "lodash", "product": "lodash-es", "defaultStatus": "unaffected", "versions": [ { "versionType": "semver", "status": "affected", "version": "4.0.0", "lessThan": "4.18.0" }, { "versionType": "semver", "status": "unaffected", "version": "4.18.0" } ], "packageURL": "pkg:npm/lodash-es" }, { "vendor": "lodash", "product": "lodash-amd", "defaultStatus": "unaffected", "versions": [ { "versionType": "semver", "status": "affected", "version": "4.0.0", "lessThan": "4.18.0" }, { "versionType": "semver", "status": "unaffected", "version": "4.18.0" } ], "packageURL": "pkg:npm/lodash-amd" }, { "vendor": "lodash", "product": "lodash.template", "defaultStatus": "unaffected", "versions": [ { "versionType": "semver", "status": "affected", "version": "4.0.0", "lessThan": "4.18.0" }, { "versionType": "semver", "status": "unaffected", "version": "4.18.0" } ], "packageURL": "pkg:npm/lodash.template" } ], "references": [ { "url": "https://github.com/advisories/GHSA-35jh-r3h4-6jhm" }, { "url": "https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c" }, { "url": "https://cna.openjsf.org/security-advisories.html" } ], "credits": [ { "lang": "en", "type": "reporter", "value": "dolevmiz1" }, { "lang": "en", "type": "reporter", "value": "bugbunny-research" }, { "lang": "en", "type": "reporter", "value": "M0nd0R" }, { "lang": "en", "type": "remediation developer", "value": "UlisesGascon" }, { "lang": "en", "type": "remediation reviewer", "value": "falsyvalues" }, { "lang": "en", "type": "remediation reviewer", "value": "jonchurch" }, { "lang": "en", "type": "reporter", "value": "threalwinky" }, { "lang": "en", "type": "remediation reviewer", "value": "jdalton" } ], "title": "lodash vulnerable to Code Injection via `_.template` imports key names", "metrics": [ { "format": "CVSS", "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "GENERAL" } ] } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-94", "lang": "en", "description": "CWE-94: Improper Control of Generation of Code ('Code Injection')", "type": "CWE" } ] } ], "x_generator": { "engine": "cve-kit 1.0.0" } }, "adp": [ { "metrics": [ { "other": { "type": "ssvc", "content": { "timestamp": "2026-03-31T20:36:55.080392Z", "id": "CVE-2026-4800", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "total" } ], "role": "CISA Coordinator", "version": "2.0.3" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2026-03-31T20:37:03.964Z" } } ] } }