Security context

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

npm/hosted-git-info
main @ 8c3bebb
1
Fixes
1
CVEs
MEDIUM
Peak severity
Highlights
Credential Leakage: 1 prior fix. Scrutinize any change in this area.
index.js: most-fixed (1 issue). Treat as high-risk during review.
0 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.

Credential Leakage: The URL reconstruction logic could inadvertently strip or mishandle embedded credentials when normalizing git-associated HTTP/HTTPS protocols unless specifically classified as authenticated protocols.
Regular Expression Denial of Service (ReDoS): The fromUrl function utilizes complex regular expressions (like shortcutMatch) that exhibit polynomial worst-case time complexity, allowing remote attackers to trigger denial of service via specifically crafted input URLs.