Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-an5j-y3cq-gbfx
Summary
lodash vulnerable to Code Injection via `_.template` imports key names
### Impact

The 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.

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`. If `Object.prototype` has been polluted by any other vector, the polluted keys are copied into the imports object and passed to `Function()`.

### Patches

Users should upgrade to version 4.18.0.

The fix applies two changes:
1. Validate `importsKeys` against the existing `reForbiddenIdentifierChars` regex (same check already used for the `variable` option)
2. Replace `assignInWith` with `assignWith` when merging imports, so only own properties are enumerated

### Workarounds

Do not pass untrusted input as key names in `options.imports`. Only use developer-controlled, static key names.
Aliases
0
alias CVE-2026-4800
1
alias GHSA-r5fr-rjxr-66jc
Fixed_packages
0
url pkg:deb/debian/node-lodash@4.18.1%2Bdfsg-1?distro=trixie
purl pkg:deb/debian/node-lodash@4.18.1%2Bdfsg-1?distro=trixie
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.18.1%252Bdfsg-1%3Fdistro=trixie
1
url pkg:deb/debian/node-lodash@4.18.1%2Bdfsg-2
purl pkg:deb/debian/node-lodash@4.18.1%2Bdfsg-2
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.18.1%252Bdfsg-2
2
url pkg:deb/debian/node-lodash@4.18.1%2Bdfsg-2?distro=trixie
purl pkg:deb/debian/node-lodash@4.18.1%2Bdfsg-2?distro=trixie
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.18.1%252Bdfsg-2%3Fdistro=trixie
3
url pkg:deb/debian/node-lodash@4.18.1%2Bdfsg-3?distro=trixie
purl pkg:deb/debian/node-lodash@4.18.1%2Bdfsg-3?distro=trixie
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.18.1%252Bdfsg-3%3Fdistro=trixie
4
url pkg:npm/lodash@4.18.0
purl pkg:npm/lodash@4.18.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash@4.18.0
5
url pkg:npm/lodash-amd@4.18.0
purl pkg:npm/lodash-amd@4.18.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash-amd@4.18.0
6
url pkg:npm/lodash-es@4.18.0
purl pkg:npm/lodash-es@4.18.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash-es@4.18.0
7
url pkg:npm/lodash.template@4.18.0
purl pkg:npm/lodash.template@4.18.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash.template@4.18.0
Affected_packages
0
url pkg:deb/debian/node-lodash@4.17.21%2Bdfsg%2B~cs8.31.173-1?distro=trixie
purl pkg:deb/debian/node-lodash@4.17.21%2Bdfsg%2B~cs8.31.173-1?distro=trixie
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-hjed-8rnm-kkbk
2
vulnerability VCID-jsc5-qvjm-6kek
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.17.21%252Bdfsg%252B~cs8.31.173-1%3Fdistro=trixie
1
url pkg:deb/debian/node-lodash@4.17.21%2Bdfsg%2B~cs8.31.173-1
purl pkg:deb/debian/node-lodash@4.17.21%2Bdfsg%2B~cs8.31.173-1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-hjed-8rnm-kkbk
2
vulnerability VCID-jsc5-qvjm-6kek
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.17.21%252Bdfsg%252B~cs8.31.173-1
2
url pkg:deb/debian/node-lodash@4.17.21%2Bdfsg%2B~cs8.31.198.20210220-9?distro=trixie
purl pkg:deb/debian/node-lodash@4.17.21%2Bdfsg%2B~cs8.31.198.20210220-9?distro=trixie
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-hjed-8rnm-kkbk
2
vulnerability VCID-jsc5-qvjm-6kek
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.17.21%252Bdfsg%252B~cs8.31.198.20210220-9%3Fdistro=trixie
3
url pkg:deb/debian/node-lodash@4.17.21%2Bdfsg%2B~cs8.31.198.20210220-9
purl pkg:deb/debian/node-lodash@4.17.21%2Bdfsg%2B~cs8.31.198.20210220-9
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-hjed-8rnm-kkbk
2
vulnerability VCID-jsc5-qvjm-6kek
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.17.21%252Bdfsg%252B~cs8.31.198.20210220-9
4
url pkg:deb/debian/node-lodash@4.17.23%2Bdfsg-1?distro=trixie
purl pkg:deb/debian/node-lodash@4.17.23%2Bdfsg-1?distro=trixie
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-hjed-8rnm-kkbk
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.17.23%252Bdfsg-1%3Fdistro=trixie
5
url pkg:deb/debian/node-lodash@4.17.23%2Bdfsg-1
purl pkg:deb/debian/node-lodash@4.17.23%2Bdfsg-1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-hjed-8rnm-kkbk
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/node-lodash@4.17.23%252Bdfsg-1
6
url pkg:npm/lodash@4.0.0
purl pkg:npm/lodash@4.0.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-1q3j-ebu2-hkd4
1
vulnerability VCID-44qf-p2rd-6qay
2
vulnerability VCID-an5j-y3cq-gbfx
3
vulnerability VCID-dzeb-zu9x-g3bq
4
vulnerability VCID-e3y9-r7uz-pkfg
5
vulnerability VCID-fhw1-4c1k-sfh3
6
vulnerability VCID-jsc5-qvjm-6kek
7
vulnerability VCID-s532-7mp1-kyeb
8
vulnerability VCID-sxth-92xw-zbea
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash@4.0.0
7
url pkg:npm/lodash@4.17.23
purl pkg:npm/lodash@4.17.23
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-hjed-8rnm-kkbk
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash@4.17.23
8
url pkg:npm/lodash-amd@4.0.0
purl pkg:npm/lodash-amd@4.0.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-dzeb-zu9x-g3bq
2
vulnerability VCID-jsc5-qvjm-6kek
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash-amd@4.0.0
9
url pkg:npm/lodash-amd@4.17.23
purl pkg:npm/lodash-amd@4.17.23
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-hjed-8rnm-kkbk
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash-amd@4.17.23
10
url pkg:npm/lodash-es@4.0.0
purl pkg:npm/lodash-es@4.0.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-44qf-p2rd-6qay
1
vulnerability VCID-an5j-y3cq-gbfx
2
vulnerability VCID-dzeb-zu9x-g3bq
3
vulnerability VCID-e3y9-r7uz-pkfg
4
vulnerability VCID-fhw1-4c1k-sfh3
5
vulnerability VCID-jsc5-qvjm-6kek
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash-es@4.0.0
11
url pkg:npm/lodash-es@4.17.23
purl pkg:npm/lodash-es@4.17.23
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-hjed-8rnm-kkbk
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash-es@4.17.23
12
url pkg:npm/lodash.template@4.0.0
purl pkg:npm/lodash.template@4.0.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-an5j-y3cq-gbfx
1
vulnerability VCID-dzeb-zu9x-g3bq
2
vulnerability VCID-fhw1-4c1k-sfh3
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/lodash.template@4.0.0
References
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-4800.json
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-4800.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-4800
reference_id
reference_type
scores
0
value 0.00037
scoring_system epss
scoring_elements 0.11017
published_at 2026-04-21T12:55:00Z
1
value 0.00068
scoring_system epss
scoring_elements 0.21122
published_at 2026-04-02T12:55:00Z
2
value 0.00068
scoring_system epss
scoring_elements 0.21177
published_at 2026-04-04T12:55:00Z
3
value 0.00089
scoring_system epss
scoring_elements 0.25379
published_at 2026-04-16T12:55:00Z
4
value 0.00089
scoring_system epss
scoring_elements 0.25372
published_at 2026-04-13T12:55:00Z
5
value 0.00089
scoring_system epss
scoring_elements 0.25426
published_at 2026-04-12T12:55:00Z
6
value 0.00089
scoring_system epss
scoring_elements 0.25468
published_at 2026-04-11T12:55:00Z
7
value 0.00089
scoring_system epss
scoring_elements 0.25369
published_at 2026-04-18T12:55:00Z
8
value 0.00089
scoring_system epss
scoring_elements 0.25455
published_at 2026-04-09T12:55:00Z
9
value 0.00089
scoring_system epss
scoring_elements 0.25408
published_at 2026-04-08T12:55:00Z
10
value 0.00089
scoring_system epss
scoring_elements 0.25339
published_at 2026-04-07T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-4800
2
reference_url https://cna.openjsf.org/security-advisories.html
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-03-31T20:36:55Z/
url https://cna.openjsf.org/security-advisories.html
3
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-4800
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-4800
4
reference_url https://github.com/advisories/GHSA-35jh-r3h4-6jhm
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-03-31T20:36:55Z/
url https://github.com/advisories/GHSA-35jh-r3h4-6jhm
5
reference_url https://github.com/lodash/lodash
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/lodash/lodash
6
reference_url https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-03-31T20:36:55Z/
url https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c
7
reference_url https://github.com/lodash/lodash/security/advisories/GHSA-r5fr-rjxr-66jc
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
2
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/lodash/lodash/security/advisories/GHSA-r5fr-rjxr-66jc
8
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-4800
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-4800
9
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1132500
reference_id 1132500
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1132500
10
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2453496
reference_id 2453496
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2453496
11
reference_url https://github.com/advisories/GHSA-r5fr-rjxr-66jc
reference_id GHSA-r5fr-rjxr-66jc
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-r5fr-rjxr-66jc
12
reference_url https://access.redhat.com/errata/RHSA-2026:8483
reference_id RHSA-2026:8483
reference_type
scores
url https://access.redhat.com/errata/RHSA-2026:8483
13
reference_url https://access.redhat.com/errata/RHSA-2026:8484
reference_id RHSA-2026:8484
reference_type
scores
url https://access.redhat.com/errata/RHSA-2026:8484
14
reference_url https://access.redhat.com/errata/RHSA-2026:8490
reference_id RHSA-2026:8490
reference_type
scores
url https://access.redhat.com/errata/RHSA-2026:8490
15
reference_url https://access.redhat.com/errata/RHSA-2026:8491
reference_id RHSA-2026:8491
reference_type
scores
url https://access.redhat.com/errata/RHSA-2026:8491
16
reference_url https://access.redhat.com/errata/RHSA-2026:8493
reference_id RHSA-2026:8493
reference_type
scores
url https://access.redhat.com/errata/RHSA-2026:8493
17
reference_url https://access.redhat.com/errata/RHSA-2026:8498
reference_id RHSA-2026:8498
reference_type
scores
url https://access.redhat.com/errata/RHSA-2026:8498
Weaknesses
0
cwe_id 94
name Improper Control of Generation of Code ('Code Injection')
description The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Exploits
Severity_range_score7.0 - 8.9
Exploitability0.5
Weighted_severity8.0
Risk_score4.0
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-an5j-y3cq-gbfx