Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

apache/maven-wagon
master @ a49f303
4
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
WebDavWagon.java: most-fixed (1 issue). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

XXE: Remote WebDAV responses are parsed with a DocumentBuilder that previously allowed external entities and doctypes, enabling XXE. The fix disables these, but other XML parsing sites in the project may still be vulnerable.
Path Traversal: Archive extraction used new File(base, entryName) without normalization, allowing zip-slip to write outside the target directory. The fix adds normalization and a startsWith check, but other extraction routines may lack the same guard.
Auth Bypass: Credentials were set via setUserinfo only after a 401 retry, which could leak credentials or bypass authentication. The fix pre-authenticates before connection, but other HTTP wagons may still follow the vulnerable retry pattern.