CVE-2026-71210: mealie: DNS-Rebinding TOCTOU in SSRF Guard Allows Internal Network and Cloud Metadata Access

Published Aug 5, 2026
·
Updated

Mealie's AsyncSafeTransport SSRF guard (mealie/pkgs/safehttp/transport.py) resolves a target hostname once, checks the resolved IP against private-range rules, but then issues the actual outbound HTTP request using the original hostname, which the underlying async transport re-resolves independently. Because the validated IP is never pinned to the actual connection, a DNS-rebinding attacker (returning a public IP to the validation lookup and a private/metadata IP to the real connection) defeats the guard. This is reachable by any authenticated user via /api/recipes/create/url, /api/recipes/test-scrape-url, and /api/recipes/{slug}/image, and the scraper reflects fetched content back to the requester, allowing an authenticated user to read internal HTTP services and cloud-metadata endpoints.

Affected Software

1 affected component
mealie/pkgs/safehttp/transport.py

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Modify the SSRF guard so it does not resolve the target hostname for validation and then re-resolve it again for the actual outbound HTTP request. After resolving once and validating the resolved IP against private-range rules, use that resolved IP for the real connection (or otherwise ensure the same resolved address is used), preventing DNS-rebinding TOCTOU via /api/recipes/create/url, /api/recipes/test-scrape-url, and /api/recipes/{slug}/image.

    Mealie AsyncSafeTransport SSRF guard (mealie/pkgs/safehttp/transport.py) DNS resolution / hostname re-use behavior = Use the already-validated resolved IP for the outbound request instead of the original hostname (avoid re-resolving)

Event History

Aug 5, 2026
CVE Published
via MITRE·06:59 AM
Data Sourced
via MITRE·06:59 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-71210?

CVE-2026-71210 has a medium severity score of 6.5.

2

What is the main issue described in CVE-2026-71210?

CVE-2026-71210 describes a DNS-Rebinding TOCTOU vulnerability in Mealie's AsyncSafeTransport SSRF guard, which allows access to internal network and cloud metadata.

3

How do I fix CVE-2026-71210?

To mitigate CVE-2026-71210, ensure the SSRF guard is updated to properly check and limit hostname resolution before making outbound HTTP requests.

4

What software is affected by CVE-2026-71210?

CVE-2026-71210 affects the Mealie package located in 'mealie/pkgs/safehttp/transport.py'.

5

When was CVE-2026-71210 published?

CVE-2026-71210 was published on August 5, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203