<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-01T05:37:16.949002+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-r5fr-rjxr-66jc</id>
    <title>GHSA-r5fr-rjxr-66jc — lodash vulnerable to Code Injection via `_.template` imports key names</title>
    <updated>2026-10-01T05:37:16.966548+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: lodash, npm: lodash-es, npm: lodash-amd, npm: lodash.template</p>
<p>### Impact</p>
<p>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.</p>
<p>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.</p>
<p>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()`.</p>
<p>### Patches</p>
<p>Users should upgrade to version 4.18.0.</p>
<p>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</p>
<p>### Workarounds</p>
<p>Do not pass untrusted input as key names in `options.imports`. Only use developer-controlled, static key names.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-r5fr-rjxr-66jc"/>
  </entry>
</feed>
