PrismJS is outdated and prone to DOM XSS #1123
Labels
dependencies
Pull requests that update a dependency file
e0-minutes
Effort < 60 min
e1-hours
p1-high
A checkmarx scan of our docsy-themed documentation turned up a reported Client DOM XSS vulnerability in
static/js/prims.js
. It reports:The problematic 'o' method:
I see that
static/js/prism.js
appears to be a hard-coded copy of approximately v1.21.0 of primsjs. But it isn't clear where exactly it came from. Should it be pulled in dynamically as an npm dependency? Or alternatively, a small change is made tostatic/js/prims.js
to sanitizee
before inserting it into the DOM?The text was updated successfully, but these errors were encountered: