Skip to content
Heist/ feed
Back to feed
Medium

Statamic's Antlers sanitizer cannot effectively sanitize malicious SVG

Type: advisorySources: OSV

Statamic is a flat-first, Laravel and Git powered content management system. Prior to version 4.10.0, the SVG tag does not sanitize malicious SVG. Therefore, an attacker can exploit this vulnerability to perform cross-site scripting attacks using SVG, even when using the `sanitize` function. Version 4.10.0 contains a patch for this issue.

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

Source evidence

Statamic's Antlers sanitizer cannot effectively sanitize malicious SVG

core-osv · Original source

Published 5 Jul 2023, 21:30 UTC

Statamic is a flat-first, Laravel and Git powered content management system. Prior to version 4.10.0, the SVG tag does not sanitize malicious SVG. Therefore, an attacker can exploit this vulnerability to perform cross-site scripting attacks using SVG, even when using the `sanitize` function. Version 4.10.0 contains a patch for this issue.

osv:CVE-2023-36828
Complete source record
{
  "id": "7df6dea45bb2b92b9c89f1fece8c2ccb51b3a56600f84c956083aa7c13c76159",
  "url": "https://osv.dev/vulnerability/CVE-2023-36828",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Statamic's Antlers sanitizer cannot effectively sanitize malicious SVG",
    "summary": "Statamic is a flat-first, Laravel and Git powered content management system. Prior to version 4.10.0, the SVG tag does not sanitize malicious SVG. Therefore, an attacker can exploit this vulnerability to perform cross-site scripting attacks using SVG, even when using the `sanitize` function. Version 4.10.0 contains a patch for this issue.",
    "evidence": "osv:CVE-2023-36828",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-36828",
      "aliases": [
        "CVE-2023-36828",
        "GHSA-6r5g-cq4q-327g"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/statamic/cms",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5261b3ba40707d013eeeedf6e8e9b225b22b5f8f"
                },
                {
                  "fixed": "c714893ad92de6e5ede17b501003441af505b30d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:statamic:statamic:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.10.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c714893ad92de6e5ede17b501003441af505b30d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "5261b3ba40707d013eeeedf6e8e9b225b22b5f8f"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v4.10.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.9.2",
            "v4.9.1",
            "v4.9.0",
            "v4.8.0",
            "v4.7.0",
            "v4.6.0",
            "v4.5.0",
            "v4.4.0",
            "v4.3.0",
            "v4.2.0",
            "v4.1.3",
            "v4.1.2",
            "v4.1.1",
            "v4.1.0",
            "v4.0.0",
            "v4.0.0-beta.4",
            "v4.0.0-beta.3",
            "v4.0.0-beta.2",
            "v4.0.0-beta.1",
            "v4.0.0-alpha.5",
            "v4.0.0-alpha.4",
            "v4.0.0-alpha.3",
            "v4.0.0-alpha.2",
            "v4.0.0-alpha.1",
            "v3.4.2",
            "v3.4.1",
            "v3.4.0",
            "v3.3.16",
            "v3.3.15",
            "v3.3.14",
            "v3.3.13",
            "v3.3.12",
            "v3.3.11",
            "v3.3.10",
            "v3.3.9",
            "v3.3.8",
            "v3.3.7",
            "v3.3.6",
            "v3.3.5",
            "v3.3.4",
            "v3.3.3",
            "v3.3.2",
            "v3.3.1",
            "v3.3.0",
            "v3.3.0-beta.7",
            "v3.3.0-beta.6",
            "v3.3.0-beta.5",
            "v3.3.0-beta.4",
            "v3.3.0-beta.3",
            "v3.3.0-beta.2",
            "v3.3.0-beta.1",
            "v3.2.30",
            "v3.2.29",
            "v3.2.28",
            "v3.2.27",
            "v3.2.26",
            "v3.2.25",
            "v3.2.24",
            "v3.2.23",
            "v3.2.22",
            "v3.2.21",
            "v3.2.20",
            "v3.2.19",
            "v3.2.18",
            "v3.2.17",
            "v3.2.16",
            "v3.2.15",
            "v3.2.14",
            "v3.2.13",
            "v3.2.12",
            "v3.2.11",
            "v3.2.10",
            "v3.2.9",
            "v3.2.8",
            "v3.2.7",
            "v3.2.6",
            "v3.2.5",
            "v3.2.4",
            "v3.2.3",
            "v3.2.2",
            "v3.2.1",
            "v3.2.0",
            "v3.2.0-beta.1",
            "v3.1.0",
            "v3.1.0-beta.3",
            "v3.1.0-beta.2",
            "v3.1.0-beta.1",
            "v3.1.0-alpha.4",
            "v3.1.0-alpha.3",
            "v3.1.0-alpha.2",
            "v3.1.0-alpha.1",
            "v3.0.35",
            "v3.0.34",
            "v3.0.33",
            "v3.0.32",
            "v3.0.31",
            "v3.0.30",
            "v3.0.29",
            "v3.0.28",
            "v3.0.27",
            "v3.0.26",
            "v3.0.25",
            "v3.0.24",
            "v3.0.23",
            "v3.0.22",
            "v3.0.21",
            "v3.0.20",
            "v3.0.19",
            "v3.0.18",
            "v3.0.17",
            "v3.0.16",
            "v3.0.15",
            "v3.0.14",
            "v3.0.13",
            "v3.0.12",
            "v3.0.11",
            "v3.0.10",
            "v3.0.9",
            "v3.0.8",
            "v3.0.7",
            "v3.0.6",
            "v3.0.5",
            "v3.0.4",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v3.0.0-beta.46",
            "v3.0.0-beta.45",
            "v3.0.0-beta.44",
            "v3.0.0-beta.43",
            "v3.0.0-beta.42",
            "v3.0.0-beta.41",
            "v3.0.0-beta.40",
            "v3.0.0-beta.39",
            "v3.0.0-beta.38",
            "v3.0.0-beta.37",
            "v3.0.0-beta.36",
            "v3.0.0-beta.35",
            "v3.0.0-beta.34",
            "v3.0.0-beta.33",
            "v3.0.0-beta.32",
            "v3.0.0-beta.31",
            "v3.0.0-beta.30",
            "v3.0.0-beta.29",
            "v3.0.0-beta.28",
            "v3.0.0-beta.27",
            "v3.0.0-beta.26",
            "v3.0.0-beta.25",
            "v3.0.0-beta.17",
            "v3.0.0-beta.16",
            "v3.0.0-beta.15"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-36828.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.886294957Z",
      "provider": "osv",
      "references": [
        "https://github.com/statamic/cms/blob/f806b6b007ddcf066082eef175653c5beaa96d60/src/Http/Controllers/CP/Fieldtypes/FilesFieldtypeController.php#L15",
        "https://github.com/statamic/cms/blob/f806b6b007ddcf066082eef175653c5beaa96d60/src/Tags/Svg.php#L36-L40",
        "https://github.com/statamic/cms/releases/tag/v4.10.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/36xxx/CVE-2023-36828.json",
        "https://github.com/statamic/cms/security/advisories/GHSA-6r5g-cq4q-327g",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-36828",
        "https://github.com/statamic/cms/commit/c714893ad92de6e5ede17b501003441af505b30d",
        "https://github.com/statamic/cms/pull/8408"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/36xxx/CVE-2023-36828.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-36828",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 503227,
  "published_at": "2023-07-05T21:30:06.196+00:00"
}