-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(js): sanitize metadata in order to prevent unlikely XSS
This commit makes sure that media metadata is sanitized before usage in HTML. This prevents a theoretical XSS. An attacker would need to be able to modify the media file played by MPV. Thanks to [@marben-olvbar](https://github.com/marben-olvbar) for pointing this out.
- Loading branch information
1 parent
cf0378a
commit 99822d6
Showing
1 changed file
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters