Skip to content
Heist/ feed
Back to feed
Medium

By-passing Cross-Site Scripting Protection in HTML Sanitizer

Type: advisorySources: OSV

TYPO3 HTML Sanitizer is an HTML sanitizer, written in PHP, aiming to provide cross-site-scripting-safe markup based on explicitly allowed tags, attributes and values. Starting in version 1.0.0 and prior to versions 1.5.1 and 2.1.2, due to an encoding issue in the serialization layer, malicious markup nested in a `noscript` element was not encoded correctly. `noscript` is disabled in the default configuration, but might have been enabled in custom scenarios. This allows bypassing the cross-site scripting mechanism of TYPO3 HTML Sanitizer. Versions 1.5.1 and 2.1.2 fix the problem.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-38500
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 12:01 UTC · Revision 1

Source evidence

By-passing Cross-Site Scripting Protection in HTML Sanitizer

core-osv · Original source

Published 25 Jul 2023, 20:59 UTC

TYPO3 HTML Sanitizer is an HTML sanitizer, written in PHP, aiming to provide cross-site-scripting-safe markup based on explicitly allowed tags, attributes and values. Starting in version 1.0.0 and prior to versions 1.5.1 and 2.1.2, due to an encoding issue in the serialization layer, malicious markup nested in a `noscript` element was not encoded correctly. `noscript` is disabled in the default configuration, but might have been enabled in custom scenarios. This allows bypassing the cross-site scripting mechanism of TYPO3 HTML Sanitizer. Versions 1.5.1 and 2.1.2 fix the problem.

osv:CVE-2023-38500
Complete source record
{
  "id": "401e07b20f3222ad2e0686f88f54f137157e45cfdc0e2424c0ff6b5d2b135049",
  "url": "https://osv.dev/vulnerability/CVE-2023-38500",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "By-passing Cross-Site Scripting Protection in HTML Sanitizer",
    "summary": "TYPO3 HTML Sanitizer is an HTML sanitizer, written in PHP, aiming to provide cross-site-scripting-safe markup based on explicitly allowed tags, attributes and values. Starting in version 1.0.0 and prior to versions 1.5.1 and 2.1.2, due to an encoding issue in the serialization layer, malicious markup nested in a `noscript` element was not encoded correctly. `noscript` is disabled in the default configuration, but might have been enabled in custom scenarios. This allows bypassing the cross-site scripting mechanism of TYPO3 HTML Sanitizer. Versions 1.5.1 and 2.1.2 fix the problem.",
    "evidence": "osv:CVE-2023-38500",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-38500",
      "aliases": [
        "CVE-2023-38500",
        "GHSA-59jf-3q9v-rh6g"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/typo3/html-sanitizer",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ca1c30b9b5c160024257f456606b1f3f17138ca6"
                },
                {
                  "fixed": "090fb6db3630663668bef386c16783efd3cb70cd"
                },
                {
                  "introduced": "b32bbd462406f28d1fca4bde8a8cd8b49a4bdd39"
                },
                {
                  "fixed": "e3026f589fef0be8c3574ee3f0a0bfbe33d7ebdb"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:typo3:html_sanitizer:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0.0"
                      },
                      {
                        "fixed": "1.5.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:typo3:html_sanitizer:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "2.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e3026f589fef0be8c3574ee3f0a0bfbe33d7ebdb"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.5.0",
            "v2.1.1",
            "v2.1.0",
            "v2.0.16",
            "v2.0.15",
            "v2.0.14",
            "v2.0.13",
            "v2.0.12",
            "v2.0.11",
            "v2.0.10",
            "v2.0.9",
            "v2.0.8",
            "v2.0.7",
            "v2.0.6",
            "v2.0.5",
            "v2.0.4",
            "v2.0.3",
            "v2.0.2",
            "v2.0.1",
            "v2.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-38500.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.082935032Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38500.json",
        "https://github.com/TYPO3/html-sanitizer/security/advisories/GHSA-59jf-3q9v-rh6g",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-38500",
        "https://typo3.org/security/advisory/typo3-core-sa-2023-002",
        "https://github.com/TYPO3/html-sanitizer/commit/e3026f589fef0be8c3574ee3f0a0bfbe33d7ebdb"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38500.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-38500",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 502273,
  "published_at": "2023-07-25T20:59:53.135+00:00"
}