Security context

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

jau123/meigen-ai-design-mcp
main @ 68cddce
4
Fixes
0
CVEs
HIGH
Peak severity
33.3%
Coverage
Highlights
SSRF: 3 prior fixes. Scrutinize any change in this area.
src/lib/url-safety.ts: most-fixed (2 issues). Treat as high-risk during review.
2 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.

SSRF: Attackers bypassed initial SSRF defenses by utilizing IPv4-mapped IPv6 addresses (like ::ffff:169.254.169.254) and unique local IPv6 addresses, targeting internal services. Developers must consistently apply robust, protocol-aware IP validation.
SSRF: The integration of new features, such as the `referenceVideo` parameter in the video generation tool, introduced SSRF vectors when remote resource retrieval skipped the central URL-safety validation checks.
Input Validation: Relying solely on file extension validation allowed users to upload malicious non-image files disguised with image extensions, requiring the implementation of magic bytes inspection during uploads.