Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vulnerable_xxe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import xml.etree.ElementTree as ET
import defusedxml.ElementTree as ET
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

New dependency defusedxml missing from project dependencies

High Severity

The import was changed to defusedxml.ElementTree but defusedxml is not declared in Pipfile or Pipfile.lock (and no requirements.txt exists). This means the application will crash at startup with an ImportError, and the intended XXE security fix will not actually be deployed. The security vulnerability remains exploitable because the fix cannot run.

Fix in Cursor Fix in Web

from flask import Flask, request
from lxml import etree
import xml.sax
Expand Down
Loading