Skip to content
Heist/ feed
Back to feed
High

Grav Shortcode Core Plugin: Stored XSS in shortcode-core attribute handlers

Type: advisorySources: OSV

Grav Shortcode Core Plugin allows for the development shortcode plugins that utilize the common format utilized by WordPress and BBCode. Prior to 6.2.2, Grav Shortcode Core passes shortcode syntax through Security::detectXss() because it contains no literal less-than character, then ColorShortcode.php and related attribute handlers concatenate an attacker-controlled parameter into HTML without encoding. An account with admin.pages permission can close the generated attribute and add an event handler, creating stored cross-site scripting that executes for visitors or administrators who view the page. This issue is fixed in version 6.2.2.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-64851
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 18:03 UTC · Revision 1

Source evidence

Grav Shortcode Core Plugin: Stored XSS in shortcode-core attribute handlers

core-osv · Original source

Published 19 Aug 2026, 15:56 UTC

Grav Shortcode Core Plugin allows for the development shortcode plugins that utilize the common format utilized by WordPress and BBCode. Prior to 6.2.2, Grav Shortcode Core passes shortcode syntax through Security::detectXss() because it contains no literal less-than character, then ColorShortcode.php and related attribute handlers concatenate an attacker-controlled parameter into HTML without encoding. An account with admin.pages permission can close the generated attribute and add an event handler, creating stored cross-site scripting that executes for visitors or administrators who view the page. This issue is fixed in version 6.2.2.

osv:CVE-2026-64851
Complete source record
{
  "id": "30fcafeb88cebb9c3d72845b890889fd92a3a6be640c401b3e970bfff6978246",
  "url": "https://osv.dev/vulnerability/CVE-2026-64851",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Grav Shortcode Core Plugin: Stored XSS in shortcode-core attribute handlers",
    "summary": "Grav Shortcode Core Plugin allows for the development shortcode plugins that utilize the common format utilized by WordPress and BBCode. Prior to 6.2.2, Grav Shortcode Core passes shortcode syntax through Security::detectXss() because it contains no literal less-than character, then ColorShortcode.php and related attribute handlers concatenate an attacker-controlled parameter into HTML without encoding. An account with admin.pages permission can close the generated attribute and add an event handler, creating stored cross-site scripting that executes for visitors or administrators who view the page. This issue is fixed in version 6.2.2.",
    "evidence": "osv:CVE-2026-64851",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-64851",
      "aliases": [
        "CVE-2026-64851",
        "GHSA-q5fw-vpqc-fgph"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/getgrav/grav-plugin-shortcode-core",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "774d527d2378005743142db5d57ce28e0bf63ba3"
                },
                {
                  "fixed": "2a55eac8a2cc7f6c2d4923ab2fa7991039620597"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.2.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2a55eac8a2cc7f6c2d4923ab2fa7991039620597"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "774d527d2378005743142db5d57ce28e0bf63ba3"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "6.2.2"
                  }
                ]
              }
            }
          ],
          "versions": [
            "6.2.1",
            "6.2.0",
            "6.1.0",
            "6.0.0",
            "5.4.0",
            "5.3.2",
            "5.3.1",
            "5.3.0",
            "5.2.1",
            "5.2.0",
            "5.1.3",
            "5.1.2",
            "5.1.1",
            "5.1.0",
            "5.0.7",
            "5.0.6",
            "5.0.5",
            "5.0.4",
            "5.0.3",
            "5.0.2",
            "2.3.0",
            "2.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64851.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.853617893Z",
      "provider": "osv",
      "references": [
        "https://github.com/getgrav/grav-plugin-shortcode-core/releases/tag/6.2.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64851.json",
        "https://github.com/getgrav/grav/security/advisories/GHSA-q5fw-vpqc-fgph",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-64851",
        "https://github.com/getgrav/grav-plugin-shortcode-core/commit/2a55eac8a2cc7f6c2d4923ab2fa7991039620597"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64851.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-64851",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 498129,
  "published_at": "2026-08-19T15:56:43.614+00:00"
}