{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "0d5c2546e858e352d5d738b75c555a098a6b1264"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0d5c2546e858e352d5d738b75c555a098a6b1264"
            }
          ],
          "repo": "https://github.com/scalar/scalar",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-8p3f-3g49-2935"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130593.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "0.1.0"
              },
              {
                "fixed": "0.3.3"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "0.1.0"
              },
              {
                "fixed": "0.3.3"
              }
            ],
            "source": "DESCRIPTION"
          }
        ]
      }
    ]
  },
  "details": "Scalar scalar-ninja 0.1.0 before 0.3.3 contains a cross-site scripting vulnerability in get_scalar_api_reference() that embeds unescaped OpenAPI content inside an inline script element. Attackers can supply an OpenAPI document containing a \u003c/script\u003e\u003cscript\u003e sequence in content or sources to execute scripts in the documentation origin for every user viewing the API reference.",
  "id": "CVE-2026-130593",
  "modified": "2026-11-17T14:45:26.216872721Z",
  "published": "2026-11-17T13:52:12.033Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130593.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/scalar/scalar"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/scalar/scalar/blob/4fbffbc6c2ece137f15ded6cfaae785caa7098d8/integrations/django-ninja/scalar_ninja/scalar_ninja.py#L529"
    },
    {
      "type": "FIX",
      "url": "https://github.com/scalar/scalar/commit/0d5c2546e858e352d5d738b75c555a098a6b1264"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/scalar/scalar/security/advisories/GHSA-8p3f-3g49-2935"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-130593"
    },
    {
      "type": "ADVISORY",
      "url": "https://pypi.org/project/scalar-ninja/0.3.3/"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/scalar-scalar-ninja-0.1.0-before-0.3.3-xss-via-inline-configuration-script"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Scalar scalar-ninja 0.1.0 before 0.3.3 XSS via Inline Configuration Script"
}