Skip to main content

Canvas CMS CVE-2026-136406

| EUVDEUVD-2026-134476 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-24 VulnCheck GHSA-2h5w-pp74-vm7p
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege Contributor
  2. Delivery
    Publish post with slash-separated onerror attribute
  3. Exploit
    Bypass PostBody::clean() via libxml2 parser differential
  4. Execution
    Admin opens public reader page, script runs in session
  5. Impact
    Self-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. <img src="x"/onerror=...>, <details/open/ontoggle=...>, <input/autofocus/onfocus=...>); these fire without a click, while the <a/href="javascript:..."> form needs a click. Execution occurs only when the post body is rendered unescaped - the public reader page /canvas-ui/{slug} or any custom host theme that echoes $post->body via {!! !!}. Limiting factors: role escalation requires a privileged Editor or Admin to open the malicious post; the Canvas admin editor and preview re-parse the body and do NOT execute the payload, so the public reader page is the trigger; behavior depends on the libxml2 build (confirmed on 2.9.14 under PHP 8.3 and the libxml2 shipped with PHP 8.4/8.5). An installed, publicly reachable reader route and an unescaped template are prerequisites.

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 <img src="x"/onerror=...> that libxml2's parser in PostBody::clean() fails to see but a browser executes. When an Editor or Admin opens the post's public reader page, the stored script runs in their session and issues an authenticated admin API call that promotes the Contributor to Admin; anonymous visitors also execute the handler in the host origin. A full working reproduction, including confirmed click-free firing in Chromium, is published in the GHSA advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Canvas 7.0.0 <7.2.11

Affected Packages

euvd canvas fix: 7.2.11

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 85% exploitable
Prevalence
Low
niche open-source Laravel blog-publishing package, limited enterprise footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy