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 <figure> and <figcaption> to default whitelist #220

Merged
merged 1 commit into from
May 6, 2021
Merged

Add <figure> and <figcaption> to default whitelist #220

merged 1 commit into from
May 6, 2021

Conversation

daraz999
Copy link
Contributor

Most RSS feeds are using these tags to wrap around media content. I propose to add these tags to the default whitelist because they don't require any attribute and do not open any XSS vulnerability

* Figure https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure
* Figcaption https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption

Most RSS feeds are using these tags to wrap around media content. I propose to add these tags to the default whitelist because they don't require any attribute and do not open any XSS vulnerability
@daraz999 daraz999 closed this Apr 15, 2021
@leizongmin leizongmin reopened this May 6, 2021
@leizongmin leizongmin merged commit 1a41e31 into leizongmin:master May 6, 2021
leizongmin added a commit that referenced this pull request May 6, 2021
Add <figure> and <figcaption> to default whitelist
@leizongmin
Copy link
Owner

I have published a new version xss@1.0.9 including the following changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants