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

Fix XXE vulnerability #463

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix XXE vulnerability #463

wants to merge 2 commits into from

Conversation

k-sever
Copy link

@k-sever k-sever commented Jan 5, 2022

Fixes #462

Comment on lines +254 to +256
reader.setFeature("http://xml.org/sax/features/external-general-entities", false);
reader.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Agitolyev
Copy link

Hi, is there a plan to merge this PR?

@ar
Copy link
Member

ar commented Apr 8, 2022

This PR needs a way to revert, via configuration, to the old behavior, just in case there's an use-case for entity expansion.

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.

XXE vulnerability in GenericPackager
3 participants