SecurityContext

CVE-2026-72832: Grav - Stored XSS

  • Cve: CVE-2026-72832
  • Name: Grav - Stored XSS
  • Description: Grav versions 1.5.2 before 2.0.13 contain a stored cross-site scripting vulnerability in the Security::detectXss() function (system/src/Grav/Common/Security.php). The event-handler scan is anchored at `<` and uses `[^>]*?`, which cannot cross the first literal `>`; when a `>` appears inside a quoted attribute value the browser keeps the tag open and parses a subsequent event handler (e.g. onerror), so the detector and browser disagree. A page editor without admin.super privileges can save page content such as `<img src=x title=">" onerror=alert(document.domain)>`, which is accepted, stored, and executed in the site origin when any visitor (including unauthenticated users) views the page. Fixed in 2.0.13.
  • Impact: Attackers can execute arbitrary scripts in site origin, affecting all visitors including unauthenticated users.
  • Remediation: Upgrade to version 2.0.13 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: stored_xss
  • Requirement type: logged_in
  • Requirements: Attacker needs page editor privileges without admin.super
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00314
  • Epss percentile: 0.24561
  • Assignee: [email protected]
  • Published at: 2026-08-14T12:16:46Z
  • Age in days: 102
  • Modified at: 2026-11-20T13:18:48Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-72832
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/getgrav/grav/commit/ad9709f865b09b68798fb1ac375b484a8cc1d892
https://github.com/getgrav/grav/security/advisories/GHSA-269c-h76q-8cxw
https://www.vulncheck.com/advisories/grav-before-stored-xss-via-quoted-attribute-bypass

Products

ProductAffectedPlatform boundSourcesUrl
getgrav:grav>= 1.5.2, < 2.0.13nocna/v1/products/getgrav/grav

Projects

RepositoryLink kindsIndexedUrl
getgrav/gravcommit, package, security_advisoryyes/v1/repositories/getgrav/grav

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 1971
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports