CVE-2026-64851

Source
https://cve.org/CVERecord?id=CVE-2026-64851
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64851.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64851
Aliases
  • GHSA-q5fw-vpqc-fgph
Published
2026-08-19T15:56:43Z
Modified
2026-09-11T03:31:03Z
Severity
  • 8.5 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Grav Shortcode Core Plugin: Stored XSS in shortcode-core attribute handlers
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64851.json"
}
References

Affected packages

Git / github.com/getgrav/grav-plugin-shortcode-core

Affected ranges

Type
GIT
Repo
https://github.com/getgrav/grav-plugin-shortcode-core
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "6.2.2"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

2.*
2.2.0
2.3.0
5.*
5.0.2
5.0.3
5.0.4
5.0.5
5.0.6
5.0.7
5.1.0
5.1.1
5.1.2
5.1.3
5.2.0
5.2.1
5.3.0
5.3.1
5.3.2
5.4.0
6.*
6.0.0
6.1.0
6.2.0
6.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64851.json"