Skip to content
Heist/ feed
Back to feed
Medium

Cross-site Scripting vulnerability with encoded payload in silverstripe/framework

Type: advisorySources: OSV

Silverstripe framework is the PHP framework forming the base for the Silverstripe CMS. In affected versions a bad actor with access to edit content in the CMS could add send a specifically crafted encoded payload to the server, which could be used to inject a JavaScript payload on the front end of the site. The payload would be sanitised on the client-side, but server-side sanitisation doesn't catch it. The server-side sanitisation logic has been updated to sanitise against this type of attack in version 5.2.16. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-32981
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 12:18 UTC · Revision 1

Source evidence

Cross-site Scripting vulnerability with encoded payload in silverstripe/framework

core-osv · Original source

Published 17 Jul 2024, 19:36 UTC

Silverstripe framework is the PHP framework forming the base for the Silverstripe CMS. In affected versions a bad actor with access to edit content in the CMS could add send a specifically crafted encoded payload to the server, which could be used to inject a JavaScript payload on the front end of the site. The payload would be sanitised on the client-side, but server-side sanitisation doesn't catch it. The server-side sanitisation logic has been updated to sanitise against this type of attack in version 5.2.16. All users are advised to upgrade. There are no known workarounds for this vulnerability.

osv:CVE-2024-32981
Complete source record
{
  "id": "6e8f29507eaf23d18a689efdceb4c8f1439855e8a45146c0c503b0bfa5bbf77d",
  "url": "https://osv.dev/vulnerability/CVE-2024-32981",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Cross-site Scripting vulnerability with encoded payload in silverstripe/framework",
    "summary": "Silverstripe framework is the PHP framework forming the base for the Silverstripe CMS. In affected versions a bad actor with access to edit content in the CMS could add send a specifically crafted encoded payload to the server, which could be used to inject a JavaScript payload on the front end of the site. The payload would be sanitised on the client-side, but server-side sanitisation doesn't catch it. The server-side sanitisation logic has been updated to sanitise against this type of attack in version 5.2.16. All users are advised to upgrade. There are no known workarounds for this vulnerability.",
    "evidence": "osv:CVE-2024-32981",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-32981",
      "aliases": [
        "CVE-2024-32981",
        "GHSA-chx7-9x8h-r5mg"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/silverstripe/silverstripe-framework",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b6e347ef3dcf61060d645d5fbc83cda951eb6382"
                },
                {
                  "fixed": "b8d20dc9d531550e06fd7da7a0eafa551922e2e1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:silverstripe:framework:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.2.16"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b8d20dc9d531550e06fd7da7a0eafa551922e2e1"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.2.15",
            "5.2.14",
            "5.2.13",
            "5.2.12",
            "5.2.11",
            "5.2.10",
            "5.2.9",
            "5.2.8",
            "5.2.7",
            "5.2.6",
            "5.2.5",
            "5.2.4",
            "5.2.3",
            "5.2.2",
            "5.2.1",
            "5.2.0",
            "5.2.0-rc1",
            "5.2.0-beta1",
            "5.1.0-beta1",
            "5.0.0-beta1",
            "5.0.0-alpha1",
            "4.9.0-beta1",
            "4.9.0-alpha1",
            "4.8.0-beta1",
            "4.7.0-beta1",
            "4.6.0-beta1",
            "4.1.0-rc1",
            "4.0.0-beta3",
            "4.0.0-beta2",
            "4.0.0-beta1",
            "4.0.0-alpha7",
            "4.0.0-alpha6",
            "4.0.0-alpha4",
            "4.0.0-alpha3",
            "4.0.0-alpha2",
            "4.0.0-alpha1",
            "3.0.0-rc1",
            "3.0.0-beta3",
            "3.0.0-beta2",
            "3.0.0-beta1",
            "3.0.0-alpha2",
            "3.0.0-alpha1",
            "2.2.2-rc1",
            "2.3.0-rc1",
            "2.2.0-rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32981.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.916385593Z",
      "provider": "osv",
      "references": [
        "https://www.silverstripe.org/download/security-releases/cve-2024-32981",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32981.json",
        "https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-chx7-9x8h-r5mg",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-32981",
        "https://github.com/silverstripe/silverstripe-framework/commit/b8d20dc9d531550e06fd7da7a0eafa551922e2e1"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32981.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-32981",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519260,
  "published_at": "2024-07-17T19:36:00.563+00:00"
}