CVE-2023-1238:
Answer vulnerable to Cross-site Scripting
5.4
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
3/7/2023
Updated
3/13/2023
KEV Status
No
Technology
Go
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 |
---|---|---|---|
github.com/answerdev/answer | go | < 1.0.6 | 1.0.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from client-side markdown processing in the Comment component. Key evidence includes:
- Removal of 'marked' library import in the patch
- Elimination of client-side HTML generation via 'marked.parse(commentMarkDown)'
- Replacement of client-generated 'html' with server-provided 'res.parsed_text'
- The pattern matches classic XSS vulnerabilities where unsanitized user input is rendered as HTML
- The commit message explicitly references XSS fixes in comment handling
- CWE-79 classification confirms this is an output sanitization failure during web page generation