[GHSA-m8p2-495h-ccmh] The SafeHtml annotation in Hibernate-Validator does not properly guard against XSS attacks #5791
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates
Comments
Based on our analysis of commits and testing, we have confirmed that this vulnerability is present in the following versions which are not reported in GitHub Advisory Database:
6.0.0.Alpha1 through 6.0.17.Final
We reached out to the corresponding CNA by email regarding this issue, but no reply has been received so far.
[Reasons]
The issue was fixed in version 6.0.18.Final, as indicated by the following commit:
hibernate/hibernate-validator@20d7295
We examine all available versions of org.hibernate.validator:hibernate-validator listed on Maven Repository to ensure no affected versions are overlooked.
https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator
We have developed and tested PoCs that reliably reproduce the vulnerability in all the affected versions listed above.
For 6.0.0.Alpha1 to 6.0.4.Final, the pocs are: https://github.com/poc-effectiveness/PoCAdaptation/tree/main/Adapted/CVE-2019-10219
For other versions, the pocs are: https://github.com/poc-effectiveness/PoCAdaptation/tree/main/Origin/CVE-2019-10219/exploit
Please let us know if any additional information or evidence is required.