MEDIUM6.1
GHSA-8v67-x8q5-3x3g
Cross-Site Scripting in simditor
Quick fix
GHSA-8v67-x8q5-3x3g — simditor: upgrade to the fixed version with the command below.
npm install simditor@2.3.22Details
Versions of `simditor` prior to 2.3.22 are vulnerable to Cross-Site Scripting. The package does not sanitize user input that is rendered with `innerHTML`, allowing attackers to execute arbitrary JavaScript.
## Recommendation
Upgrade to version 2.3.22 or later.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-19048[ADVISORY]
- https://github.com/mycolorway/simditor/commit/ef01a643cbb7f8163535d6bfb71135f80ec6a6fd[WEB]
- https://github.com/hkglue/simditor_demo.git[WEB]
- https://github.com/hkglue/simditor_dom_xss/blob/master/README.md[WEB]
- https://github.com/mycolorway/simditor/releases/tag/v2.3.22[WEB]
- https://snyk.io/vuln/SNYK-JS-SIMDITOR-174638[WEB]
- https://www.npmjs.com/advisories/884[WEB]