CodiMD through 2.5.4 has a CSP-based protection mechanism against XSS through uploaded SVG documents containing JavaScript, but it can be bypassed in certain cases of different-origin file storage, such as AWS S3. NOTE: it can be considered a user error if AWS is employed for hosting untrusted JavaScript content, but the selected architecture within AWS does not have components that are able to insert Content-Security-Policy headers.
CVE ID: CVE-2025-46655
CVSS Base Severity: MEDIUM
CVSS Base Score: 4.9
CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
Vendor: HackMD
Product: CodiMD
EPSS Score: 0.03% (probability of being exploited)
EPSS Percentile: 7.1% (scored less or equal to compared to others)
EPSS Date: 2025-05-25 (when was this score calculated)