CVE-2026-4800
Publication date 31 March 2026
Last updated 28 October 2026
Ubuntu priority
Cvss 3 Severity Score
Description
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| node-lodash | 26.10 stonking |
Needs evaluation
|
| 26.04 LTS resolute |
Fixed in 4.17.23+dfsg-1ubuntu0.1~esm1
|
|
| 24.04 LTS noble |
Fixed in 4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1
|
|
| 22.04 LTS jammy |
Fixed in 4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1
|
|
| 20.04 LTS focal |
Fixed in 4.17.15+dfsg-2ubuntu0.1~esm1
|
|
| 18.04 LTS bionic |
Fixed in 4.17.4+dfsg-1ubuntu0.1~esm1
|
|
| 16.04 LTS xenial |
Fixed in 2.4.1+dfsg-3ubuntu0.1~esm1
|
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu Pro 30-day free trialSeverity score breakdown
CVSS version: CVSS v3.0
Base score
8.1 · High
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Related Ubuntu Security Notices (USN)
- USN-8411-1
- Lodash vulnerabilities
- 9 June 2026