{
  "schema_version": "1.4.0",
  "id": "GHSA-fp3m-g5rc-4c28",
  "modified": "2025-06-30T12:51:24Z",
  "published": "2025-03-03T09:30:34Z",
  "aliases": [
    "CVE-2024-53386"
  ],
  "summary": "Stage.js DOM Clobbering vulnerabilty",
  "details": "Stage.js through 0.8.10 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup can be shadowed by attacker-injected HTML elements.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "stage-js"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "0.8.10"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-53386"
    },
    {
      "type": "WEB",
      "url": "https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/piqnt/stage.js"
    },
    {
      "type": "WEB",
      "url": "https://github.com/piqnt/stage.js/blob/919f6e94b14242f6e6994141a9e1188439d306d5/lib/core.js#L158-L159"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79",
      "CWE-94"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-03T20:17:21Z",
    "nvd_published_at": "2025-03-03T07:15:34Z"
  }
}