Advisory

DEBIAN-CVE-2026-4800

Also known as: CVE-2026-4800

Summary

The record has no summary.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-03-31 20:16 UTC
Modified
2026-10-16 09:47 UTC

Affected packages and fixes

node-lodash

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1 (ecosystem)

Fixed versions

4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1

Fix

  • Fixed version 4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

node-lodash

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1 (ecosystem)

Fixed versions

4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1

Fix

  • Fixed version 4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

node-lodash

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 4.18.1+dfsg-1 (ecosystem)

Fixed versions

4.18.1+dfsg-1

Fix

  • Fixed version 4.18.1+dfsg-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences