From acf81f386f1bb885e7194b2bc733ce71389b68be Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 7 Jun 2021 00:42:03 +0530 Subject: [PATCH] Fix severe vulnerability in case of a malicious Piped/YouTube server. --- package.json | 1 + src/components/Channel.vue | 2 +- src/components/WatchVideo.vue | 12 +++++++----- src/main.js | 5 +++++ yarn.lock | 5 +++++ 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index c796395f..59011b72 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@fortawesome/vue-fontawesome": "^3.0.0-4", "core-js": "^3.13.1", "css-loader": "^5.2.6", + "dompurify": "^2.2.9", "hotkeys-js": "^3.8.5", "register-service-worker": "^1.7.1", "shaka-player": "3.1.0", diff --git a/src/components/Channel.vue b/src/components/Channel.vue index 00f8fa4d..87bf0f54 100644 --- a/src/components/Channel.vue +++ b/src/components/Channel.vue @@ -4,7 +4,7 @@

{{ channel.name }}

-

+


diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 0a3751da..f6900995 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -1,6 +1,6 @@