Skip to content
Heist/ feed
Back to feed
CriticalFix available

node-lodash — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-4800

The fix for CVE-2021-23337 added validation for the variable option in _.template but did not apply the same validation to options.imports key names, and both paths flow into the same Function() constructor sink. When 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. Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in, so if Object.prototype has been polluted by another vector the polluted keys are copied into the imports object and passed to Function(). The issue is fixed in 4.18.1 for lodash, lodash-es, lodash-amd, and lodash.template. As a workaround, do not pass untrusted input as key names in options.imports; use only developer-controlled, static key names.

Products
node-lodash
Affected versions
4.17.21+dfsg+~cs8.31.198.20210220-10, 4.17.21+dfsg+~cs8.31.198.20210220-9, 4.17.23+dfsg-1
Fixed versions
4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1, 4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1, 4.18.1+dfsg-1
CVEs
CVE-2026-4800
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 19:59 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-4800

core-osv · Original source

Published 31 Mar 2026, 20:16 UTC

The fix for CVE-2021-23337 added validation for the variable option in _.template but did not apply the same validation to options.imports key names, and both paths flow into the same Function() constructor sink. When 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. Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in, so if Object.prototype has been polluted by another vector the polluted keys are copied into the imports object and passed to Function(). The issue is fixed in 4.18.1 for lodash, lodash-es, lodash-amd, and lodash.template. As a workaround, do not pass untrusted input as key names in options.imports; use only developer-controlled, static key names.

osv:DEBIAN-CVE-2026-4800

node-lodash

Fixed versions: 4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1

node-lodash

Fixed versions: 4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1

node-lodash

Fixed versions: 4.18.1+dfsg-1

Complete source record
{
  "id": "9208d6a0e2ba945203e3162bc3f8c10f9c0cab01cf38c9f8c582d43203cd2b2e",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-4800",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-4800",
    "summary": "The fix for CVE-2021-23337 added validation for the variable option in _.template but did not apply the same validation to options.imports key names, and both paths flow into the same Function() constructor sink. When 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. Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in, so if Object.prototype has been polluted by another vector the polluted keys are copied into the imports object and passed to Function(). The issue is fixed in 4.18.1 for lodash, lodash-es, lodash-amd, and lodash.template. As a workaround, do not pass untrusted input as key names in options.imports; use only developer-controlled, static key names.",
    "evidence": "osv:DEBIAN-CVE-2026-4800",
    "products": [
      {
        "name": {
          "value": "node-lodash",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "4.17.21+dfsg+~cs8.31.198.20210220-9",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-lodash",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "4.17.21+dfsg+~cs8.31.198.20210220-9",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-lodash",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.18.1+dfsg-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "4.17.21+dfsg+~cs8.31.198.20210220-10",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.17.21+dfsg+~cs8.31.198.20210220-9",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.17.23+dfsg-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2026-4800",
      "aliases": [
        "DEBIAN-CVE-2026-4800"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-lodash",
            "purl": "pkg:deb/debian/node-lodash?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "4.17.21+dfsg+~cs8.31.198.20210220-9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-4800.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-lodash",
            "purl": "pkg:deb/debian/node-lodash?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "4.17.21+dfsg+~cs8.31.198.20210220-9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-4800.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.18.1+dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-lodash",
            "purl": "pkg:deb/debian/node-lodash?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "4.17.21+dfsg+~cs8.31.198.20210220-10",
            "4.17.21+dfsg+~cs8.31.198.20210220-9",
            "4.17.23+dfsg-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-4800.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-16T09:47:34.393898316Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-4800"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-4800"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-4800",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 338646,
  "published_at": "2026-03-31T20:16:29.66+00:00"
}