# GHSA-9WH8-6GP5-GX53: Stored XSS in @payloadcms/richtext-lexical

- Database: GitHub
- Severity: CVSS 8.7 (High)
- Published: 2026-11-09
- Modified: 2026-11-09

## Affected versions

- @payloadcms/richtext-lexical (npm): from 3.0.0-beta.74, fixed in 3.93.0
- @payloadcms/richtext-lexical (npm): from 4.0.0-beta.0, fixed in 4.0.0-beta.7

## Description

### Impact

Stored cross-site scripting (XSS) in `@payloadcms/richtext-lexical` allows an authenticated content author to execute JavaScript in another user’s session when they view a document’s version comparison in the Admin Panel. This can lead to privilege escalation.

You are affected if:

- You use `@payloadcms/richtext-lexical` with document versioning.
- Users can save rich text content that other users review through the Admin Panel’s version comparison view.

### Patches

The fix prevents crafted rich text table data from injecting executable HTML into the version comparison view.

Users should upgrade to `>=3.93.0` or `>=4.0.0-beta.7`.

### Workarounds

Upgrading is recommended. Until then, avoid opening version comparisons for documents containing untrusted rich text content.

## References

- https://github.com/payloadcms/payload/security/advisories/GHSA-9wh8-6gp5-gx53

Page: https://cve.now/GHSA-9WH8-6GP5-GX53

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
