GHSA-jgw5-rp4p-qhp6

Suggest an improvement
Source
https://github.com/advisories/GHSA-jgw5-rp4p-qhp6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-jgw5-rp4p-qhp6/GHSA-jgw5-rp4p-qhp6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jgw5-rp4p-qhp6
Aliases
Published
2023-09-28T06:30:20Z
Modified
2023-11-08T04:12:00Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
quill-mention Cross-site Scripting vulnerability
Details

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 @.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2023-09-28T16:42:32Z",
    "nvd_published_at":  "2023-09-28T05:15:46Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / quill-mention

Package

Name
quill-mention
View open source insights on deps.dev
Purl
pkg:npm/quill-mention

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-jgw5-rp4p-qhp6/GHSA-jgw5-rp4p-qhp6.json"