PT-2025-17963 · Codimd · Codimd
Ninjagptop
·
Published
2025-04-26
·
Updated
2025-10-28
·
CVE-2025-46654
CVSS v3.1
4.9
Medium
| Vector | AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
CodiMD versions 2.2.0 and earlier
Description
The issue concerns a bypass of the Content Security Policy (CSP) protection mechanism against Cross-Site Scripting (XSS) attacks. This can be achieved by uploading a .html file that references an uploaded .js file, thus allowing the execution of malicious JavaScript content.
Recommendations
For versions 2.2.0 and earlier, as a temporary workaround, consider restricting the upload of .html and .js files to minimize the risk of exploitation. Additionally, restrict access to the file upload feature to authorized users only. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Codimd