java-json-tools / json-schema-validator

A JSON Schema validation implementation in pure Java, which aims for correctness and performance, in that order
http://json-schema-validator.herokuapp.com/
Other
1.62k stars 399 forks source link

Currently json schema validator is using com.sun.mail which depends on Java Mail API 1.6.2 and has vulnerabilities , should use jakarta mail instead. #411

Open naveengujjar29 opened 10 months ago

naveengujjar29 commented 10 months ago

Json shcema validator is using internally AddressException and InternetAddress for mail field validation from javax.mail.internet package which has dependency on Java Mail API (https://mvnrepository.com/artifact/com.sun.mail/javax.mail/1.6.2) and this version has the vulnerabilities.

If you see this has been moved to a new artifact https://mvnrepository.com/artifact/com.sun.mail/jakarta.mail which has more latest version and does not have any vulnerabilities.

We should also use the same in this repo. This PR has been raised for the same changes.