ubuntu-cve-2026-4800
Vulnerability from osv_ubuntu
Published
2026-03-31 20:16
Modified
2026-06-30 16:18
Summary
Details

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. Workarounds: Do not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.


{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libjs-lodash",
            "binary_version": "2.4.1+dfsg-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-lodash",
            "binary_version": "2.4.1+dfsg-3ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "node-lodash",
        "purl": "pkg:deb/ubuntu/node-lodash@2.4.1+dfsg-3ubuntu0.1~esm1?arch=source\u0026distro=esm-apps-legacy/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.4.1+dfsg-3ubuntu0.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.4.1+dfsg-3"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libjs-lodash",
            "binary_version": "4.17.4+dfsg-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-lodash",
            "binary_version": "4.17.4+dfsg-1ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "node-lodash",
        "purl": "pkg:deb/ubuntu/node-lodash@4.17.4+dfsg-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.17.4+dfsg-1ubuntu0.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.17.4+dfsg-1"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libjs-lodash",
            "binary_version": "4.17.15+dfsg-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-lodash",
            "binary_version": "4.17.15+dfsg-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-lodash-packages",
            "binary_version": "4.17.15+dfsg-2ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "node-lodash",
        "purl": "pkg:deb/ubuntu/node-lodash@4.17.15+dfsg-2ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.17.15+dfsg-2ubuntu0.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.17.11+dfsg-4",
        "4.17.15+dfsg-2"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libjs-lodash",
            "binary_version": "4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-lodash",
            "binary_version": "4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-lodash-packages",
            "binary_version": "4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:22.04:LTS",
        "name": "node-lodash",
        "purl": "pkg:deb/ubuntu/node-lodash@4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.17.21+dfsg+~cs8.31.173-1",
        "4.17.21+dfsg+~cs8.31.196.20210220-2",
        "4.17.21+dfsg+~cs8.31.198.20210220-4",
        "4.17.21+dfsg+~cs8.31.198.20210220-5"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libjs-lodash",
            "binary_version": "4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1"
          },
          {
            "binary_name": "node-lodash",
            "binary_version": "4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1"
          },
          {
            "binary_name": "node-lodash-packages",
            "binary_version": "4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:24.04:LTS",
        "name": "node-lodash",
        "purl": "pkg:deb/ubuntu/node-lodash@4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1?arch=source\u0026distro=esm-apps/noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.17.21+dfsg+~cs8.31.198.20210220-9"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libjs-lodash",
            "binary_version": "4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1"
          },
          {
            "binary_name": "node-lodash",
            "binary_version": "4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1"
          },
          {
            "binary_name": "node-lodash-packages",
            "binary_version": "4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "node-lodash",
        "purl": "pkg:deb/ubuntu/node-lodash@4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.17.21+dfsg+~cs8.31.198.20210220-9"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
        "binaries": [
          {
            "binary_name": "libjs-lodash",
            "binary_version": "4.17.23+dfsg-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-lodash",
            "binary_version": "4.17.23+dfsg-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "node-lodash-packages",
            "binary_version": "4.17.23+dfsg-1ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:26.04:LTS",
        "name": "node-lodash",
        "purl": "pkg:deb/ubuntu/node-lodash@4.17.23+dfsg-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.17.23+dfsg-1ubuntu0.1~esm1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.17.21+dfsg+~cs8.31.198.20210220-9",
        "4.17.23+dfsg-1"
      ]
    }
  ],
  "aliases": [],
  "details": "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. Workarounds: Do not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.",
  "id": "UBUNTU-CVE-2026-4800",
  "modified": "2026-06-30T16:18:36Z",
  "published": "2026-03-31T20:16:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2026-4800"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-4800"
    },
    {
      "type": "REPORT",
      "url": "https://cna.openjsf.org/security-advisories.html"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/advisories/GHSA-35jh-r3h4-6jhm"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-8411-1"
    }
  ],
  "related": [
    "USN-8411-1"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2026-4800"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…