Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-48345

sanitize-url (aka @braintree/sanitize-url) before 6.0.2 allows XSS via HTML entities.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-48345
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 07:08 UTC · Revision 1

Source evidence

CVE-2022-48345

core-osv · Original source

Published 24 Feb 2023, 00:00 UTC

sanitize-url (aka @braintree/sanitize-url) before 6.0.2 allows XSS via HTML entities.

osv:CVE-2022-48345
Complete source record
{
  "id": "0fd3358c3f3bfd5a1ff1dc906592a6c1c78e6d72cff087d271f405b786ca3ad2",
  "url": "https://osv.dev/vulnerability/CVE-2022-48345",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-48345",
    "summary": "sanitize-url (aka @braintree/sanitize-url) before 6.0.2 allows XSS via HTML entities.",
    "evidence": "osv:CVE-2022-48345",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-48345",
      "aliases": [
        "CVE-2022-48345",
        "GHSA-q8gg-vj6m-hgmj"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/braintree/sanitize-url",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "14a14e8e201d56dcd7726c30254690301ee03821"
                },
                {
                  "fixed": "d4bdc89f1743fe3cdb7c3f24b06e4c875f349b0c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:paypal:braintree\\/sanitize-url:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d4bdc89f1743fe3cdb7c3f24b06e4c875f349b0c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.0.0",
            "v5.0.2",
            "v5.0.1",
            "v5.0.0",
            "v4.1.1",
            "v4.1.0",
            "v4.0.1",
            "v4.0.0",
            "v3.1.0",
            "2.1.0",
            "2.0.2",
            "2.0.1",
            "2.0.0",
            "1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48345.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.786339268Z",
      "provider": "osv",
      "references": [
        "https://github.com/braintree/sanitize-url/compare/v6.0.1...v6.0.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48345.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-48345",
        "https://github.com/braintree/sanitize-url/commit/d4bdc89f1743fe3cdb7c3f24b06e4c875f349b0c"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48345.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-48345",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493251,
  "published_at": "2023-02-24T00:00:00+00:00"
}