Advisory

UBUNTU-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

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

Dates

Published
2026-03-31 20:16 UTC
Modified
2026-10-28 20:17 UTC

Affected packages and fixes

node-lodash

Debian packages (deb) · Ubuntu 25.10

Affected

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

Fixed versions

4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1

Fix

  • Fixed version 4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.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.

node-lodash

Debian packages (deb) · Ubuntu 26.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

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: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences