CVE-2020-28847: Cross site scripting in valine
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.40267%
CWE
Published
4/6/2022
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
valine | npm | < 1.4.15 | 1.4.15 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized 'nick' parameter handling in comment submissions. The proof-of-concept shows XSS via the nick field in POST /classes/Comment, indicating the backend comment processing function accepts raw user input without adequate XSS protections. While exact code isn't available, the pattern matches classic stored XSS vulnerabilities where user-controlled input (nick) isn't sanitized before persistence. The fix in v1.4.15 ('fix xss') likely added input sanitization/escaping in this comment handling logic.