CVE-2024-31991

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-31991
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31991.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-31991
Published
2024-04-19T20:42:05Z
Modified
2025-11-07T08:00:50.823986Z
Severity
  • 4.1 (Medium) CVSS_V3 - CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N CVSS Calculator
Summary
Mealie vulnerable to a GET-based SSRF in recipe importer (GHSL-2023-225)
Details

Mealie is a self hosted recipe manager and meal planner. Prior to 1.4.0, the safescrapehtml 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.

Database specific
{
    "cwe_ids": [
        "CWE-918"
    ]
}
References

Affected packages

Git / github.com/hay-kot/mealie

Affected ranges

Type
GIT
Repo
https://github.com/hay-kot/mealie
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.0.1
v0.0.2
v0.1.0
v0.2.0
v0.2.1
v0.2.2
v0.3.0
v0.4.0
v0.4.1
v0.4.1a
v0.4.2
v0.4.3

v1.*

v1.0.0
v1.0.0-RC1
v1.0.0-RC1.1
v1.0.0-RC2
v1.0.0-beta-1
v1.0.0beta-2
v1.0.0beta-3
v1.0.0beta-4
v1.0.0beta-5
v1.1.0
v1.1.1
v1.2.0
v1.3.0
v1.3.1
v1.3.2

Git / github.com/mealie-recipes/mealie

Affected ranges

Type
GIT
Repo
https://github.com/mealie-recipes/mealie
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.0.1
v0.0.2
v0.1.0
v0.2.0
v0.2.1
v0.2.2
v0.3.0
v0.4.0
v0.4.1
v0.4.1a
v0.4.2
v0.4.3

v1.*

v1.0.0
v1.0.0-RC1
v1.0.0-RC1.1
v1.0.0-RC2
v1.0.0-beta-1
v1.0.0beta-2
v1.0.0beta-3
v1.0.0beta-4
v1.0.0beta-5
v1.1.0
v1.1.1
v1.2.0
v1.3.0
v1.3.1
v1.3.2