Skip to content
Heist/ feed
Back to feed
Medium

node-rollup — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-47068

Rollup is a module bundler for JavaScript. Versions prior to 2.79.2, 3.29.5, and 4.22.4 are susceptible to a DOM Clobbering vulnerability when bundling scripts with properties from `import.meta` (e.g., `import.meta.url`) in `cjs`/`umd`/`iife` format. The DOM Clobbering gadget can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an `img` tag with an unsanitized `name` attribute) are present. Versions 2.79.2, 3.29.5, and 4.22.4 contain a patch for the vulnerability.

Products
node-rollup
Affected versions
0.50.0-6build3, 0.68.2-2, 1.12.0-2build2, 1.12.0-2build3, 2.38.4-1, 2.42.1-2, 2.61.1-5, 3.28.0-2, 3.29.4-2, 3.29.4-3, 3.29.5-1, 3.30.0-1, 3.30.0-5build5
Fixed versions
Not specified
CVEs
CVE-2024-47068
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:14 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-47068

core-osv · Original source

Published 23 Sept 2024, 16:15 UTC

Rollup is a module bundler for JavaScript. Versions prior to 2.79.2, 3.29.5, and 4.22.4 are susceptible to a DOM Clobbering vulnerability when bundling scripts with properties from `import.meta` (e.g., `import.meta.url`) in `cjs`/`umd`/`iife` format. The DOM Clobbering gadget can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an `img` tag with an unsanitized `name` attribute) are present. Versions 2.79.2, 3.29.5, and 4.22.4 contain a patch for the vulnerability.

osv:UBUNTU-CVE-2024-47068

node-rollup

Fixed versions: Not specified

node-rollup

Fixed versions: Not specified

node-rollup

Fixed versions: Not specified

node-rollup

Fixed versions: Not specified

node-rollup

Fixed versions: Not specified

node-rollup

Fixed versions: Not specified

Complete source record
{
  "id": "da578cba3972e68bd58741d228bb12582d92aca4771ac3b46fd9f411dfdec601",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-47068",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-47068",
    "summary": "Rollup is a module bundler for JavaScript. Versions prior to 2.79.2, 3.29.5, and 4.22.4 are susceptible to a DOM Clobbering vulnerability when bundling scripts with properties from `import.meta` (e.g., `import.meta.url`) in `cjs`/`umd`/`iife` format. The DOM Clobbering gadget can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an `img` tag with an unsanitized `name` attribute) are present. Versions 2.79.2, 3.29.5, and 4.22.4 contain a patch for the vulnerability.",
    "evidence": "osv:UBUNTU-CVE-2024-47068",
    "products": [
      {
        "name": {
          "value": "node-rollup",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.50.0-6build3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.68.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.12.0-2build2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.12.0-2build3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-rollup",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.38.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.42.1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.61.1-5",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-rollup",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.28.0-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.29.4-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.29.4-3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-rollup",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.29.5-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-rollup",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.30.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.30.0-5build5",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-rollup",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.29.5-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.30.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2024-47068",
      "aliases": [
        "UBUNTU-CVE-2024-47068"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-rollup",
            "purl": "pkg:deb/ubuntu/node-rollup?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.50.0-6build3",
            "0.68.2-2",
            "1.12.0-2build2",
            "1.12.0-2build3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "rollup",
                "binary_version": "1.12.0-2build3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-rollup",
            "purl": "pkg:deb/ubuntu/node-rollup?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.38.4-1",
            "2.42.1-2",
            "2.61.1-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "rollup",
                "binary_version": "2.61.1-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-rollup",
            "purl": "pkg:deb/ubuntu/node-rollup?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.28.0-2",
            "3.29.4-2",
            "3.29.4-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "rollup",
                "binary_version": "3.29.4-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-rollup",
            "purl": "pkg:deb/ubuntu/node-rollup?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.29.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "rollup",
                "binary_version": "3.29.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-rollup",
            "purl": "pkg:deb/ubuntu/node-rollup?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.30.0-1",
            "3.30.0-5build5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "rollup",
                "binary_version": "3.30.0-5build5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-rollup",
            "purl": "pkg:deb/ubuntu/node-rollup?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.29.5-1",
            "3.30.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "rollup",
                "binary_version": "3.30.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:45.436788794Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-47068"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-47068",
        "https://www.cve.org/CVERecord?id=CVE-2024-47068",
        "https://github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm",
        "https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4",
        "https://github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541",
        "https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L157-L162",
        "https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L180-L185"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-47068",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356157,
  "published_at": "2024-09-23T16:15:00+00:00"
}