CVE-2021-32853: Erxes vulnerable to Cross-site Scripting
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99329%
CWE
Published
2/21/2023
Updated
2/22/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| erxes | npm | <= 1.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The XSS vulnerability arises from two connected components: 1) The route handler in index.ts directly passes user-controlled query parameter (topicId) to the template without sanitization. 2) The EJS template uses unescaped output (<%-) when embedding this value in a JavaScript context, allowing script injection. The combination of unsanitized input passing and dangerous output interpolation creates an XSS vector. GitHub's security advisory demonstrates concrete exploitation examples using this exact code path.