Description
Versions of the package quill-mention before 4.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper user-input sanitization, via the renderList function. **Note:** If the mentions list is sourced from unsafe (user-sourced) data, this might allow an injection attack when a Quill user hits @.
Remediation
References
https://codepen.io/ALiangLiang/pen/mdQMJXK
https://github.com/quill-mention/quill-mention/blob/0aa9847719257496b14ac5401872c4e2ffcbc3d1/src/quill.mention.js%23L391
https://github.com/quill-mention/quill-mention/commit/e85262ddced0a7f0b6fc8350d236a68bd1e28385
https://github.com/quill-mention/quill-mention/issues/255
https://github.com/quill-mention/quill-mention/pull/341
https://security.snyk.io/vuln/SNYK-JS-QUILLMENTION-5921549
Related Vulnerabilities
CVE-2021-25930 Vulnerability in maven package org.opennms:opennms-webapp
CVE-2020-28451 Vulnerability in npm package image-tiler
CVE-2023-36542 Vulnerability in maven package org.apache.nifi:nifi-record-serialization-services
CVE-2016-5018 Vulnerability in maven package org.apache.tomcat:tomcat-jasper
CVE-2023-26115 Vulnerability in maven package org.webjars.npm:word-wrap