Description
Canvas 7.0.0 before 7.2.11 contains a stored cross-site scripting vulnerability that allows authenticated Contributors to inject scripts by exploiting a libxml2 parser differential in PostBody::clean(). Attackers can publish posts with slash-separated event handler attributes rendered unescaped in show.blade.php, hijacking Editor or Admin sessions to escalate their role to Admin.
Affected products and versions
austintoddj canvas7.0.0 – < 7.2.11Fixed in: 7.2.11
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Required
- Scope
- Affects other components
- Confidentiality
- Low impact
- Integrity
- Low impact
- Availability
- None
Weakness type (CWE)
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- github.com/austintoddj/canvas/security/advisories/GHSA-rwxv-634g-pw9j vendor advisory
- github.com/austintoddj/canvas/commit/5160847d2195196e2147d06b38d68830aff81f58 patch
- github.com/austintoddj/canvas/releases/tag/v7.2.11
- github.com/austintoddj/canvas/blob/v7.2.10/src/Support/PostBody.php#L134-L151
- www.vulncheck.com/advisories/canvas-7.0.0-before-7.2.11-stored-xss-via-postbody-sanitizer-
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.