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

Keep tag that have not been closed by > before reaching EOF. #582

Merged
merged 1 commit into from
Jul 5, 2015

Conversation

fazerish
Copy link

We use Hibernate Validator (HV) and the @SafeHtlm annotation to validate input from users. During a security review we discovered that an unsafe XSS vector slipped by the validator. During debugging HV we discovered that the source of the problem was related to how Jsoup handled tags without a closing > when reaching EOF.

Code reference to SafeHtmlValidator in HV

jhy added a commit that referenced this pull request Jul 5, 2015
Keep tag that have not been closed by > before reaching EOF.
@jhy jhy merged commit 4edb789 into jhy:master Jul 5, 2015
@jhy
Copy link
Owner

jhy commented Jul 5, 2015

Looks good, thanks.

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