8.7high
Clipboard-based XSS in jsuites
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.91% (higher than 61% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qh7x-j4v8-qw5w
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| jsuites jsuites | < 4.9.11, before 4.9.11 | CVE List, NVD |
| jsuites (npm) | before 4.9.11 | GitHub Advisory Database |
All scores
| GitHub_M | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
XSS against the user.
Details
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 causing XSS.
References
The Curious Case of Copy & Paste – on risks of pasting arbitrary content in browsers: https://research.securitum.com/the-curious-case-of-copy-paste/
NVD (es)
jsuites es una colección de código abierto de componentes web javascript comunes necesarios. En las versiones afectadas los usuarios están sujetos a ataques de tipo cross site scripting (XSS) por medio del contenido del portapapeles. jsuites es vulnerable a un ataque de tipo XSS basado en el DOM si es posible engañar al usuario para que copie _anything_ de un malicioso y lo pegue en el editor html. Esto es debido a que una parte del contenido del portapapeles es escrita directamente en "innerHTML", permitiendo una inyección de javascript y, por tanto, un ataque de tipo XSS. Se recomienda a usuarios que actualicen a la versión 4.9.11 para resolverlo
References
| https://github.com/jsuites/jsuites/security/advisories/GHSA-qh7x-j4v8-qw5w | third-party-advisory, web | |
| https://github.com/jsuites/jsuites/commit/d47a6f4e143188dde2742f4cffd313e1068ad3b3 | patch, third-party-advisory, web | |
| https://github.com/jsuites/jsuites/commit/fe1d3cc5e339f2f4da8ed1f9f42271fdf9cbd8d2 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41086 | advisory | |
| https://github.com/jsuites/jsuites | web | |
| https://www.npmjs.com/package/jsuites | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41086 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qh7x-j4v8-qw5w changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41086 changed 2026-06-17 | Public domain |