Skip to main content
Vulnerability Database/CVE-2026-108594

CVE-2026-108594: Mealie OIDC SSRF Vulnerability

CVE-2026-108594 is a server-side request forgery vulnerability in Mealie that allows authenticated OIDC users to exploit avatar fetch functionality and send GET requests to arbitrary ports. This post explains technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108594 Overview

CVE-2026-108594 is a server-side request forgery (SSRF) vulnerability [CWE-918] in Mealie, an open-source recipe management application. Versions 3.26.0 through 3.28.0 are affected. The flaw resides in the OpenID Connect (OIDC) avatar fetch logic, which allowlists the identity provider hostname but ignores the port. Authenticated OIDC users who control their picture claim URL can force the Mealie server to issue GET requests to arbitrary ports on the provider's internal address during each login. The issue is tracked as a low-severity SSRF because exploitation requires authentication and only yields blind GET requests.

Critical Impact

Authenticated OIDC users can coerce the Mealie backend to probe internal ports on the identity provider host, enabling internal network reconnaissance.

Affected Products

  • Mealie 3.26.0
  • Mealie 3.27.x
  • Mealie 3.28.0

Discovery Timeline

  • 2026-10-10 - CVE-2026-108594 published to NVD
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-108594

Vulnerability Analysis

Mealie supports OIDC authentication and retrieves the user's avatar from the URL supplied in the picture claim returned by the identity provider. To mitigate SSRF, the openid_provider.py module validates that the avatar URL hostname matches the configured identity provider hostname. The validation compares hostnames only and does not include the port component. A user who controls the picture claim value can therefore submit a URL pointing to the same hostname but any arbitrary TCP port. On each login, the Mealie server performs a GET request to that endpoint using its SafeHTTP transport. The response is not reflected back to the attacker, so exploitation is limited to blind requests. The practical outcome is internal port scanning and reachability probing of services co-located with the OIDC provider from the server's network perspective.

Root Cause

The root cause is incomplete URL allowlist validation. The hostname check in the OIDC provider implementation strips or ignores the :port suffix when comparing the user-supplied avatar URL against the trusted identity provider URL. The SafeHTTP transport layer in mealie/pkgs/safehttp/transport.py enforces network-level restrictions against private IP ranges, but a legitimate OIDC provider hostname can resolve to an internal address, and the port omission allows any service bound to that address to be contacted.

Attack Vector

Exploitation requires an authenticated account on an OIDC-enabled Mealie instance where the attacker can influence the picture claim returned by the identity provider. The attacker sets the claim to a URL such as https://idp.internal.example:6379/anything, retaining the trusted hostname while targeting a different port. Each subsequent login triggers a GET request from the Mealie server to the specified host and port. See the HackMD OIDC Avatar SSRF Analysis and the VulnCheck Mealie SSRF Advisory for complete reproduction details.

Detection Methods for CVE-2026-108594

Indicators of Compromise

  • Outbound GET requests from the Mealie application server to the OIDC provider hostname on non-standard ports such as 6379, 8080, 9200, or 11211.
  • OIDC id_token or userinfo responses where the picture claim URL contains an explicit port other than 80 or 443.
  • Repeated avatar fetch failures logged by the Mealie backend on every login for a specific user.

Detection Strategies

  • Log and inspect all outbound HTTP requests originating from the Mealie service account, flagging destinations whose port does not match the configured OIDC provider port.
  • Correlate OIDC login events with subsequent egress connections from the Mealie host to identify avatar-fetch patterns against internal services.
  • Review Mealie application logs for entries from the openid_provider module referencing avatar retrieval errors.

Monitoring Recommendations

  • Enable network flow logging between the Mealie backend and the identity provider subnet, retaining source port, destination port, and user context.
  • Alert on first-seen destination ports from the Mealie service identity, excluding the known OIDC HTTPS port.
  • Monitor identity provider admin changes to user picture attributes for anomalous URLs containing embedded ports.

How to Mitigate CVE-2026-108594

Immediate Actions Required

  • Upgrade Mealie to a version later than 3.28.0 that includes the port-aware hostname validation fix.
  • Audit all OIDC user picture claim values and remove any URLs containing non-standard ports.
  • Restrict the Mealie server's egress to the identity provider using firewall rules that permit only the OIDC HTTPS port.

Patch Information

Refer to the Mealie Recipes Repository for the fixed release and release notes. The vulnerable logic can be reviewed in the Mealie OpenID Provider Code and the Mealie SafeHTTP Transport Code. The VulnCheck Mealie SSRF Advisory tracks remediation status.

Workarounds

  • Disable OIDC authentication in Mealie until the upgrade is applied if the identity provider cannot restrict user-controlled picture claims.
  • Configure the identity provider to overwrite or sanitize the picture claim and reject URLs containing an explicit port.
  • Place the Mealie server behind an egress proxy that enforces a strict allowlist of destination host:port pairs for outbound HTTP requests.
bash
# Example egress firewall rule restricting Mealie to the OIDC HTTPS port only
iptables -A OUTPUT -o eth0 -d idp.internal.example -p tcp --dport 443 -j ACCEPT
iptables -A OUTPUT -o eth0 -d idp.internal.example -p tcp -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.