-
Notifications
You must be signed in to change notification settings - Fork 118
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
fix setFeature bug and add test case #188
fix setFeature bug and add test case #188
Conversation
CVE-2021-33813 was assigned to this PR. |
Hello, I deal with the security aspects in OSS libs within SAO. Thanks |
Is there any intention to incorporate this fix in a new version release? |
Yes, sure, at some point, but remember if you're worried about external entities being expanded, just call builder.setExpandEntities(false) and they won't be. That's what it's there for. |
This PR changes the order of precedence between Previously, setExpendEntities overruled user-supplied features, and now the opposite is true. Note, JDOM tries to "isolate" users from needing to know the internal guts of what underlying parsers are used, so the Further, the way I read this, I think it's possible now to set conflicting features with This may need to be tweaked. |
I think the better implementation for this fix would be to track whether setExpandEntities has been explicitly set, and if not, base it on whether the |
Note, improved this regression with dd4f3c2 Synchronize setFeature and setExpandEntities so they can only work together. |
The workaround of "builder.setExpandEntities(false)" can only be applied to "own" code, but not the the many usages of JDOM inside our many dependencies. So please come up with a fixed release soon. |
Can you publish CVE-2021-33813 as a security advisory on this project so that it shows up in GitHub Advisories? Even if you're going to fix it in the next version, it's useful for it to be reported against the previous versions (and it will encourage your users to upgrade too). |
Is there any possibility to incorporate this security fix and make a new version release of JDOM ? |
This fix is available and merged since June 2021. Is there any reason why this important fix is not released yet? |
Feel free to make a build for yourself, since the pull request has been merged in. If you want it in Maven, I'm working on proving identity to get credentials to push there. Rolf had them and he's not responding. |
Thank you Jason for your effort. Hope that a link to this issue could be a good proof of identity for Sonatype to grant you access. |
Looks like being able to add TXT entries to the jdom.org DNS will suffice, which is something I can do. |
CONFSERVER-82911 Back-port hunterhacker#188
No description provided.