/

CVE-2026-136134

Severity:

HIGH RISK

(7.3)

Path Traversal (CWE-22) in Mealie I18n Locale Provider

CVE-2026-136134

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Potential unauthorized file access

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Mealie's I18n Locale Provider has a path traversal flaw in locale handling. A remote attacker who can reach the affected functionality may manipulate the Accept-Language argument to cause access to paths outside the intended locale location.

Affected context

The issue occurs in the I18n Locale Provider, in the get function of mealie/pkgs/i18n/provider_factory.py, when processing the Accept-Language argument. It is relevant when attacker-controlled language input can influence a filesystem path without sufficient normalization or containment checks.

Exploit preconditions

  • Attack surface: A remotely reachable Mealie function that processes locale preferences
  • Required access: Network access to the affected functionality; authentication requirements may depend on deployment configuration
  • Trigger point: Handling of a request containing an Accept-Language value
  • Why exploitation is possible: The value may influence a filesystem path without adequate safeguards against traversal

Why this happens

The underlying issue is insufficient validation or containment of attacker-controlled input used in filesystem path construction. If locale input can introduce path components that escape the intended directory, the application may resolve paths outside that directory. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Potential impact

  • An attacker may cause the application to resolve paths outside the intended locale directory.
  • Depending on accessible files and application behavior, this could expose information or interfere with normal locale handling.
  • The issue could provide a foothold for further attacks if sensitive data or useful filesystem resources are accessible.

General mitigation guidance

Mitigation generally focuses on ensuring that user-controlled locale values cannot determine unrestricted filesystem paths.

Common defensive patterns include:

  • Mapping accepted locale identifiers to a fixed set of known values.
  • Resolving candidate paths and verifying that they remain within the intended directory.
  • Rejecting unexpected path separators and traversal components through allowlist-based validation.
  • Avoiding filesystem lookups based directly on request headers when a fixed mapping is sufficient.
  • Limiting the application process's filesystem permissions to reduce the impact of path-handling flaws.

How teams detect issues like this

High-level detection approaches include:

  • Reviewing code that converts request headers or locale values into filesystem paths.
  • Using static analysis to identify path construction involving untrusted input without containment checks.
  • Testing locale handling with policy-approved traversal cases in controlled environments.
  • Enforcing code-review or CI policies that require allowlists and verified path containment for filesystem access.

Sources

SourceLink
github.comgithub.com/mealie-recipes/mealie/
github.comgithub.com/mealie-recipes/mealie/commit/4d074185d0dd1bb2dada7a4470bd04bd91227040
github.comgithub.com/mealie-recipes/mealie/releases/tag/v3.30.0
github.comgithub.com/mealie-recipes/mealie/security/advisories/GHSA-5c8x-wwp4-vgmf
github.comgithub.com/waterhunter2000-svg/vulnerability-reports/blob/main/09-mealie-accept-language-path-traversal.md
github.comgithub.com/waterhunter2000-svg/vulnerability-reports/issues/1
vuldb.comvuldb.com/cve/CVE-2026-136134
vuldb.comvuldb.com/submit/1056491
vuldb.comvuldb.com/vuln/442871
vuldb.comvuldb.com/vuln/442871/cti

Frequently asked

questions

The issue is described as remotely exploitable when an attacker can reach functionality that processes the affected locale input.

Network access to the relevant functionality is required. Whether authentication is also required depends on the deployment and the exposure of that functionality.

Use a fixed allowlist of supported locale identifiers and ensure any resolved filesystem path remains within its intended directory.

Treat request headers as untrusted, avoid using them directly in path construction, and apply static analysis and code-review checks to filesystem operations.

Find out what's already
exploitable in your codebase.