# CVE-2026-136406: Canvas 7.0.0 before 7.2.11 Stored XSS via PostBody Sanitizer Parser Differential


- **Severity:** Medium 5.1 (`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`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 24 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** GHSA-2h5w-pp74-vm7p, GHSA-rwxv-634g-pw9j

## What is CVE-2026-136406?

CVE-2026-136406 is a medium-severity vulnerability in austintoddj canvas, published on 24 Nov 2026. 

### Official 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.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2026-136406?

1 open source package ship an affected version, including austintoddj/canvas.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `austintoddj/canvas` | Packagist | `pkg:composer/austintoddj/canvas` | From 7.0.0 | 7.2.11 |

## How do I fix CVE-2026-136406?

Upgrade austintoddj/canvas to 7.2.11 or later.

## Is CVE-2026-136406 being exploited?

There is no known exploitation of CVE-2026-136406 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-136406 and fix it if it is affected.

What it is: CVE-2026-136406 is a medium-severity vulnerability in austintoddj canvas, published on 24 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-136406 in the wild and no public exploit code.

Affected packages and fixed versions:
- austintoddj/canvas (Packagist): affected from 7.0.0; fixed in 7.2.11

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-136406/ (Markdown: https://insights.sbomify.com/CVE-2026-136406/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-136406
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-136406
- OSV: https://osv.dev/vulnerability/CVE-2026-136406

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-136406/
Summaries are generated and may contain mistakes; the official description above is the record.
