Skip to content
Heist/ feed
Back to feed
Medium

Mealie vulnerable to a GET-based SSRF in recipe importer (GHSL-2023-225)

Type: advisorySources: OSV

Mealie is a self hosted recipe manager and meal planner. Prior to 1.4.0, the safe_scrape_html function utilizes a user-controlled URL to issue a request to a remote server. Based on the content of the response, it will either parse the content or disregard it. This function, nor those that call it, add any restrictions on the URL that can be provided, nor is it restricted to being an FQDN (i.e., an IP address can be provided). As this function’s return will be handled differently by its caller depending on the response, it is possible for an attacker to use this functionality to positively identify HTTP(s) servers on the local network with any IP/port combination. This issue can result in any authenticated user being able to map HTTP servers on a local network that the Mealie service has access to. Note that by default any user can create an account on a Mealie server, and that the default changeme@example.com user is available with its hard-coded password. This vulnerability is fixed in 1.4.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-31991
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 23:29 UTC · Revision 1

Source evidence

Mealie vulnerable to a GET-based SSRF in recipe importer (GHSL-2023-225)

core-osv · Original source

Published 19 Apr 2024, 20:42 UTC

Mealie is a self hosted recipe manager and meal planner. Prior to 1.4.0, the safe_scrape_html function utilizes a user-controlled URL to issue a request to a remote server. Based on the content of the response, it will either parse the content or disregard it. This function, nor those that call it, add any restrictions on the URL that can be provided, nor is it restricted to being an FQDN (i.e., an IP address can be provided). As this function’s return will be handled differently by its caller depending on the response, it is possible for an attacker to use this functionality to positively identify HTTP(s) servers on the local network with any IP/port combination. This issue can result in any authenticated user being able to map HTTP servers on a local network that the Mealie service has access to. Note that by default any user can create an account on a Mealie server, and that the default changeme@example.com user is available with its hard-coded password. This vulnerability is fixed in 1.4.0.

osv:CVE-2024-31991
Complete source record
{
  "id": "8c50f838a04514bcf503c63f2e3a2a4a9f81afd06bdf913b40e73974b6a4828e",
  "url": "https://osv.dev/vulnerability/CVE-2024-31991",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Mealie vulnerable to a GET-based SSRF in recipe importer (GHSL-2023-225)",
    "summary": "Mealie is a self hosted recipe manager and meal planner. Prior to 1.4.0, the safe_scrape_html function utilizes a user-controlled URL to issue a request to a remote server. Based on the content of the response, it will either parse the content or disregard it. This function, nor those that call it, add any restrictions on the URL that can be provided, nor is it restricted to being an FQDN (i.e., an IP address can be provided). As this function’s return will be handled differently by its caller depending on the response, it is possible for an attacker to use this functionality to positively identify HTTP(s) servers on the local network with any IP/port combination. This issue can result in any authenticated user being able to map HTTP servers on a local network that the Mealie service has access to. Note that by default any user can create an account on a Mealie server, and that the default changeme@example.com user is available with its hard-coded password. This vulnerability is fixed in 1.4.0.",
    "evidence": "osv:CVE-2024-31991",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-31991",
      "aliases": [
        "CVE-2024-31991"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mealie-recipes/mealie",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f709d11952ca8552214e4b9e8c2a189bc11bfb2a"
                },
                {
                  "fixed": "2a3463b7466bc297aede50046da9550d919ec56f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mealie:mealie:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.4.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2a3463b7466bc297aede50046da9550d919ec56f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.0",
            "v1.0.0-RC2",
            "v1.0.0-RC1.1",
            "v1.0.0-RC1",
            "v1.0.0beta-5",
            "v1.0.0beta-4",
            "v1.0.0beta-3",
            "v1.0.0beta-2",
            "v1.0.0-beta-1",
            "v0.4.0",
            "v0.3.0",
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "v0.1.0",
            "v0.0.2",
            "v0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31991.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.572935217Z",
      "provider": "osv",
      "references": [
        "https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/services/scraper/scraper_strategies.py#L27-L70",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31991.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-31991",
        "https://securitylab.github.com/advisories/GHSL-2023-225_GHSL-2023-226_Mealie/",
        "https://github.com/mealie-recipes/mealie/commit/2a3463b7466bc297aede50046da9550d919ec56f",
        "https://github.com/mealie-recipes/mealie/pull/3368"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-918"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31991.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-31991",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490880,
  "published_at": "2024-04-19T20:42:05.782+00:00"
}