You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix polynomial regular expression vulnerability in XML encoding detection (#68)
* Fix polynomial regex vulnerability in ENCODING_PATTERN
Changed the regex pattern from .* to .*? to use non-greedy matching,
preventing catastrophic backtracking on malicious input.
Added test case to validate the fix with various edge cases.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: slachiewicz <[email protected]>
0 commit comments