The leaflet module ships a bundled copy of @geoman-io/leaflet-geoman-free at version 2.13.0 (js/leaflet-geoman-free/dist/). This version bundles lodash 4.17.21, which is affected by two security vulnerabilities:
- CVE-2026-2950 (https://nvd.nist.gov/vuln/detail/CVE-2026-2950) — Prototype pollution via _.unset/_.omit (CVSS 5.3 Medium), fixed in lodash 4.18.0
- CVE-2026-4800 (https://nvd.nist.gov/vuln/detail/CVE-2026-4800) — Code injection via template options (CVSS 9.8 Critical), fixed in lodash 4.18.0
@geoman-io/leaflet-geoman-free 2.19.3 ships lodash 4.18.1 and resolves both CVEs.
Steps to reproduce: Check js/leaflet-geoman-free/package.json — lodash is listed as a runtime dependency at 4.17.21. Confirm it is inlined into dist/leaflet-geoman.min.js (search for lodash:"4.17.21" in that file).
Proposed fix: Update the bundled leaflet-geoman-free from 2.13.0 to 2.19.3, rebuild the dist files, and release a new module version.
Issue fork leaflet-3591443
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3591443-update-bundled-leaflet-geoman-free
changes, plain diff MR !72
Comments
Comment #5
itamair commentedthanks @youngwolf0
Going to deploy a new Drupal Leaflet release with all this.