Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DOMPurify to address XSS issues; closes #420 #431

Merged
merged 4 commits into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"font-awesome": "~4.4.0",
"primer-css": "3.x.x",
"jquery": "~1.11.x",
"keen-js": "~3.4.0",
"trackjs": "~2.10.1",
"typeahead.js": "~0.11.1",
"plyr": "1.6.x",
"urijs": "1.18.1"
"urijs": "1.18.1",
"DOMPurify": "^3.1.0"
}
}
42 changes: 42 additions & 0 deletions bower_components/DOMPurify/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "DOMPurify",
"version": "3.1.0",
"homepage": "https://github.com/cure53/DOMPurify",
"author": "Cure53 <[email protected]>",
"description": "A DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG",
"main": "src/purify.js",
"keywords": [
"dom",
"xss",
"cross site scripting",
"html",
"svg",
"mathml",
"sanitizer",
"filter",
"sanitize",
"security",
"secure"
],
"license": [
"MPL-2.0",
"Apache-2.0"
],
"ignore": [
"**/.*",
"demos",
"scripts",
"test",
"website"
],
"_release": "3.1.0",
"_resolution": {
"type": "version",
"tag": "3.1.0",
"commit": "db19269d8f9029cba78eabc9d6b52e73c31702ad"
},
"_source": "https://github.com/cure53/DOMPurify.git",
"_target": "^3.1.0",
"_originalSource": "DOMPurify",
"_direct": true
}
568 changes: 568 additions & 0 deletions bower_components/DOMPurify/LICENSE

Large diffs are not rendered by default.

424 changes: 424 additions & 0 deletions bower_components/DOMPurify/README.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions bower_components/DOMPurify/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Supported Versions

Always the latest release.

## Reporting a Vulnerability

First of all, please immediately contact us via [email](mailto:[email protected]) so we can work on a fix. [PGP key](https://keyserver.ubuntu.com/pks/lookup?op=vindex&search=0xC26C858090F70ADA)

Also, you probably qualify for a bug bounty! The fine folks over at [Fastmail](https://www.fastmail.com/) use DOMPurify for their services and added our library to their bug bounty scope. So, if you find a way to bypass or weaken DOMPurify, please also have a look at their website and the [bug bounty info](https://www.fastmail.com/about/bugbounty/).
32 changes: 32 additions & 0 deletions bower_components/DOMPurify/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "DOMPurify",
"version": "3.1.0",
"homepage": "https://github.com/cure53/DOMPurify",
"author": "Cure53 <[email protected]>",
"description": "A DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG",
"main": "src/purify.js",
"keywords": [
"dom",
"xss",
"cross site scripting",
"html",
"svg",
"mathml",
"sanitizer",
"filter",
"sanitize",
"security",
"secure"
],
"license": [
"MPL-2.0",
"Apache-2.0"
],
"ignore": [
"**/.*",
"demos",
"scripts",
"test",
"website"
]
}
1,527 changes: 1,527 additions & 0 deletions bower_components/DOMPurify/dist/purify.cjs.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions bower_components/DOMPurify/dist/purify.cjs.js.map

Large diffs are not rendered by default.

1,525 changes: 1,525 additions & 0 deletions bower_components/DOMPurify/dist/purify.es.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions bower_components/DOMPurify/dist/purify.es.mjs.map

Large diffs are not rendered by default.

1,533 changes: 1,533 additions & 0 deletions bower_components/DOMPurify/dist/purify.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions bower_components/DOMPurify/dist/purify.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions bower_components/DOMPurify/dist/purify.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions bower_components/DOMPurify/dist/purify.min.js.map

Large diffs are not rendered by default.

Loading
Loading