-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Cross-site Scripting (XSS) via URI #925
Labels
L1 - broken
Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue
Comments
You are right. this should should be a case-insensitive match: html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig unfortunately the maintainer is not longer around to push a change to npm. I will push a change to the master branch but unfortunately that may be as far as this change goes. |
Hi Matt -- did this issue ever result in a pull request? Thanks! |
joshbruce
added
the
L1 - broken
Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue
label
Dec 1, 2017
See #937 |
Merged
Just tested this and it is still an issue. Why was this closed? what tests were added? |
See #926 |
Merged
zhenalexfan
pushed a commit
to zhenalexfan/MarkdownHan
that referenced
this issue
Nov 8, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
L1 - broken
Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue
Browsers support both lowercase and uppercase
x
in hexadecimal form of HTML character entity (tested on Chromium && FF).But marked unescape only lowercase:
This allow attacker to create link with javascript code.
For example, this code:
Will render:
Browser example: https://www.buglloc.com/marked.html
Tested on Marked v0.3.6 + Chromium 60.0.3112.90 and Firefox 55.0.1
The text was updated successfully, but these errors were encountered: