{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "43.0.0"
              },
              {
                "fixed": "43.5.6"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "c59c084087b3dbb02dd637d87e1e1254ac6cfa8d"
            },
            {
              "fixed": "efcf09690e9fa7d7abdfb987b785a55f87e287df"
            },
            {
              "fixed": "ef90524ef31ae03c0c57755d1d462f4233aab22f"
            }
          ],
          "repo": "https://github.com/ddnexus/pagy",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-2xmw-f8j8-wfxc"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-200",
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54659.json"
  },
  "details": "Pagy is agnostic pagination in plain Ruby. From 43.0.0 until 43.5.6, Pagy::I18n.locale= in gem/lib/pagy/modules/i18n/i18n.rb stored locale values verbatim and later used them as \u003clocale\u003e.yml path components, allowing untrusted params[:locale] values with absolute paths or ../ sequences to create a file existence and readability oracle for YAML files. This issue is fixed in version 43.5.6.",
  "id": "CVE-2026-54659",
  "modified": "2026-07-31T03:34:12.692237426Z",
  "published": "2026-07-28T22:25:35.231Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/ddnexus/pagy/releases/tag/43.5.6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54659.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ddnexus/pagy/security/advisories/GHSA-2xmw-f8j8-wfxc"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-54659"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ddnexus/pagy/commit/efcf09690e9fa7d7abdfb987b785a55f87e287df"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ddnexus/pagy/pull/908"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Pagy I18n locale option is not validated before being used in a file path"
}