[Bug]: Security vulnerability, XSS #4600
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
extension-youtube
What Tiptap version are you using?
2.1.12
What’s the bug you are facing?
Vulnerability in
getEmbedUrlFromYoutubeUrl
. Attacker can send response to server to store youtube video with any url which contains/embed/
. E.g.javascript:alert(1)//embed/
(Executes arbitrary code in site origin).What browser are you using?
Chrome
Code example
https://github.com/ElizarBatin/tiptap-poc
What did you expect to happen?
getEmbedUrlFromYoutubeUrl
function should fixedAnything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: