# CVE-2026-22849: Saleor lacks proper HTML sanitization in rich text fields

> Malicious staff can inject scripts into rich text fields to steal tokens from other users via stored XSS in Saleor e-commerce platform.

- **Severity:** High 7.2 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 21 Jan 2026
- **Updated:** 22 Jan 2026
- **Also known as:** GHSA-8jcj-r5g2-qrpv

## What is CVE-2026-22849?

CVE-2026-22849 is a high-severity cross-site scripting vulnerability in saleor, published on 21 Jan 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

### Official description

Saleor is an e-commerce platform. Starting in version 3.0.0 and prior to versions 3.20.108, 3.21.43, and 3.22.27, Saleor was allowing users to modify rich text fields with HTML without running any backend HTML cleaners thus allowing malicious actors to perform stored XSS attacks on dashboards and storefronts. Malicious staff members could craft script injections to target other staff members, possibly stealing their access and/or refresh tokens. This issue has been patched in versions 3.22.27, 3.21.43, and 3.20.108. In case of inability to upgrade straight away, a possible workaround is to use client-side cleaner.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation), CWE-83 (Improper Neutralization of Script in Attributes in a Web Page)

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

It affects 1 product.


Products: Saleor Saleor.

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

No fix has been published for CVE-2026-22849 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-22849 being exploited?

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

Public exploit code:

- CVE-2026-22849 - Saleor lacks proper HTML sanitization in rich text fields (github_poc): https://github.com/lukasz-rybak/CVE-2026-22849

## Other vulnerabilities in saleor

- [CVE-2026-24136](https://insights.sbomify.com/CVE-2026-24136/): Saleor has an Insecure Direct Object Reference (IDOR) in GraphQL API (high 8.7)
- [CVE-2026-23499](https://insights.sbomify.com/CVE-2026-23499/): Saleor vulnerable to stored XSS via Unrestricted File Upload (high 8.5)
- [CVE-2026-33756](https://insights.sbomify.com/CVE-2026-33756/): Saleor Affected by Denial of Service via Unbounded GraphQL Query Batching (high 7.5)
- [CVE-2026-35401](https://insights.sbomify.com/CVE-2026-35401/): Saleor has a resource exhaustion vulnerability in GraphQL queries (high 7.5)
- [CVE-2023-26051](https://insights.sbomify.com/CVE-2023-26051/): Saleor is vulnerable to staff-authenticated error message information disclosure vulnerability via Python exceptions (medium 6.5)

## Fix prompt for AI coding agents

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

What it is: CVE-2026-22849 is a high-severity cross-site scripting vulnerability in saleor, published on 21 Jan 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-22849 in the wild and no public exploit code.

Affected product: saleor. No package-level version data is available, so check the vendor advisory linked from the reference page.

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-22849/ (Markdown: https://insights.sbomify.com/CVE-2026-22849/index.md)
```

## Sources

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

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