-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Vulnerability: special characters should be escaped by default #41
Comments
Thank you for the heads up! That seems reasonable that escaping
|
Thanks a lot, that would be fantastic! I think it is a bit more than Also, you might consider this a breaking change, since people who handled escaping on their side could end up with doubly-escaped strings such as |
Thanks again! Entities are now escaped by default in Decided to make this a new major version in the end because it does in fact require dependents to make a code change to return to the old behavior, which is indeed a breaking change. |
By default, this package does not escape XML characters:
This is dangerous behaviour, since it means invalid XML can be output, causing injection vulnerabilities.
As a user, I would expect this package to escape strings by default. If there is a need to disable escaping, this could be done in the config, but that should not be the default behaviour.
The text was updated successfully, but these errors were encountered: