Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege Contributor
-
DeliveryPublish post with slash-separated onerror attribute
-
ExploitBypass PostBody::clean() via libxml2 parser differential
-
ExecutionAdmin opens public reader page, script runs in session
-
ImpactSelf-escalate Contributor account to Admin via API
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated account with the lowest Canvas role (Contributor), who can create and self-publish posts via the admin API with publish_now and no approval step. The stored payload must use a slash-separated attribute shape that libxml2 drops but browsers honor (e.g. |
| Impact | This is a genuine but moderate-priority issue, not a drop-everything emergency, and the signals are consistent rather than conflicting. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N, score 5.1 / Medium) matches the mechanism described: network-reachable but requiring an authenticated low-privilege account (Contributor, PR:L) and passive interaction by a victim who opens the post (UI:P). It is NOT in CISA KEV, so there is no confirmed active exploitation. No EPSS score is provided in the input, so probabilistic exploitation likelihood cannot be quantified here. The GHSA advisory supplies a detailed, confirmed reproduction with working payloads (a public PoC reference exists; it is not labeled as packaged standalone exploit code in the input), which raises practical exploitability above the raw score. The vuln.today decision label is 'this_month', aligning with a patch-this-cycle posture rather than act_now/emergency. The main thing tempering real-world risk is the Contributor prerequisite plus the limited deployment footprint of this product; the main thing elevating it is that a trusted insider at the lowest role can reliably escalate to full Admin when any Editor/Admin views the post. The low per-metric impacts (VC:L/VI:L) understate the demonstrated outcome (role escalation to Admin granting user management and webhook integrations), so treat the chained impact as higher than the individual metrics imply. |
| Exploit ScenarioDerived | An authenticated Contributor - the lowest Canvas role, able to self-publish without approval - saves a post containing a slash-separated event handler such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Stored cross-site scripting in the Canvas publishing platform (austintoddj/canvas) 7.0.0 through 7.2.10 lets a Contributor - the lowest role, which can create and self-publish posts via publish_now with no approval step - persist a post body whose slash-separated handler attributes (e.g. <img src="x"/onerror=...> or <details/open/ontoggle=...>) are dropped by libxml2 and therefore never inspected by PostBody::clean(), while browsers still honor them, so the raw string is stored byte-for-byte and fires when anyone opens the public reader page. When an Editor or Admin opens that page the script runs in the host application's origin and can make authenticated Canvas API calls, which the upstream advisory demonstrates as a Contributor-to-Admin (role 1 to 3) escalation granting user management, taxonomy and webhook/integration access. Exploitation requires an installed, publicly reachable /canvas-ui/{slug} reader route and a template that echoes the body unescaped (the Canvas admin editor and preview re-parse the body and do not execute the payload), and a public proof-of-concept walkthrough exists in the advisory; there is no CISA KEV entry, no verified working exploit code, and this is assessed as a genuine but moderate-priority issue rather than an emergency.
RemediationAI
Upgrade austintoddj/canvas to 7.2.11 or later (Vendor-released patch: 7.2.11), available via the release tag https://github.com/austintoddj/canvas/releases/tag/v7.2.11 and implemented in commit 5160847d2195196e2147d06b38d68830aff81f58, which forces the sanitizer to rebuild the DOM whenever a solidus-terminated start tag, unclosed comment, NUL, '<?' or '<![' is encountered instead of returning the input unchanged; because clean() also runs on read, the getter re-cleans stored bodies at render time, so existing posts are re-processed once the new code is deployed. If immediate upgrade is not possible, remove the preconditions rather than relying on the sanitizer: require moderation before publishing (drop Contributor self-publish via publish_now and force an approval step) so a stored payload never reaches the reader page, accepting the editorial workflow cost; restrict the public /canvas-ui/{slug} reader route to authenticated or trusted-network users, accepting the loss of anonymous readership; and ensure host templates escape the body instead of echoing it raw, noting that escaping breaks intentional HTML/iframe embeds that the product expects to render. The advisory's suggested long-term direction is an allowlist sanitizer built on an HTML5 parser (for example Symfony HtmlSanitizer or HTMLPurifier with a strict allowlist) that always returns re-serialised output and treats iframes as a separate https-only rule, plus regression tests for '/'-separated attribute shapes; the current test suite, tests/Support/PostBodyTest.php, contains no such cases. Advisory: https://github.com/austintoddj/canvas/security/advisories/GHSA-rwxv-634g-pw9j.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Canvas\Support\PostBody::clean() was introduced as the fix for GHSA-8xqp-qv6c-p5r8 and runs on every post body both on save and on read. It parses markup with PHP DOMDocument::loadHTML, i.e. libxml2's HTML4 parser, walks the attributes libxml2 exposes, and - if nothing looks dangerous - returns the original string unchanged instead of a re-serialised tree. That design creates a parser differential: libxml2 2.9.14 (PHP 8.3) and the libxml2 builds shipped with PHP 8.4/8.5 stop reading a start tag at a solidus that follows the tag name or a quoted attribute value, so <img src="x"/onerror=...>, <img/src="x"/onerror=...>, <details/open/ontoggle=...>, <input/autofocus/onfocus=...> and <a/href="javascript:..."> are seen as carrying only benign attributes, while browsers following HTML5 parsing continue past the solidus and register the handler. Because clean() hands back the original bytes, elementNeedsCleaning()'s rejection of on* attributes, srcdoc and dangerous URL schemes is bypassed for exactly the attributes libxml2 never surfaced; the click-free img, details/open/ontoggle and input/autofocus/onfocus forms were confirmed in Chromium, while the a/href javascript: form needs a click. The stored value is rendered unescaped by the reader UI in show.blade.php via {!! $post->body !!}, and since the accessor re-runs the same clean(), the read-side pass is equally blind to the payload. This is CWE-79 (cross-site scripting) reachable because the sanitizer implements an incomplete deny-list (CWE-184), failing on an input shape its parser does not model. The 7.2.11 fix in commit 5160847d2195196e2147d06b38d68830aff81f58 adds rawHtmlIsReturnable(), a byte-level scanner that forces a rebuilt tree whenever it meets a solidus-terminated start tag, an abruptly closed comment, NUL bytes, '<?' or '<![', and re-validates the rebuilt output.
Know when Canvas gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Authenticated Contributor gives PR:L; a privileged user must open the post, so UI:R; script executing in the victim's origin is S:C with limited C/I and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
A buffer overflow is present in canvas version <= 1.6.9, which could lead to a Denial of Service or execution of arbitra
Stored Cross-Site Scripting in the Canvas plugin for WordPress (versions ≤ 2.5.2) allows an authenticated attacker holdi
cnvs.io Canvas 3.3.0 has XSS in the title and content fields of a "Posts > Add New" action, and during creation of new t
EUVD-2026-134476
GHSA-2h5w-pp74-vm7p
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB