CVE-2021-40289: mm-wiki is vulnerable to Cross-Site Scripting (XSS)
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.33231%
CWE
Published
11/10/2022
Updated
1/27/2023
KEV Status
No
Technology
Go
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 |
---|---|---|---|
github.com/phachon/mm-wiki | go | <= 0.2.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The XSS vulnerability occurs in the space creation functionality where user-supplied 'tags' parameter input is not sanitized before storage. The endpoint /system/space/save
is implicated in the vulnerability report, and in typical Go web application structure, this would map to a controller handler function responsible for processing form submissions. While exact code isn't available, the pattern suggests the Save
handler in the space controller processes raw user input without adequate HTML escaping or validation, particularly for the 'tags' field. Confidence is medium due to reliance on endpoint mapping and vulnerability reproduction steps rather than direct code analysis.