Skip to content

Conversation

@chmccreery
Copy link
Owner

No description provided.

from flask import jsonify
from flask import request
from flask import Response
import xml

Choose a reason for hiding this comment

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

Found use of the native Python XML libraries, which is vulnerable to XML external entity (XXE) attacks and can lead to discolsure of confidential data. The Python documentation recommends the 'defusedxml' library instead.

Suggested change
import xml
import defusedxml
🔴 Fix or ignore this finding to merge your pull request.
🙈 From python.lang.security.use-defused-xml.use-defused-xml.

Repository owner deleted a comment from semgrep-app-local-dev bot Feb 18, 2022
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.

2 participants