CodiMD through 2.2.0 has a CSP-based protection mechanism against XSS through uploaded JavaScript content, but it can be bypassed by uploading a .html file that references an uploaded .js file.
https://github.com/zast-ai/vulnerability-reports/blob/main/formidable/file_upload/report.md