Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. pagy
  4. ›
  5. CVE-2026-54659

CVE-2026-54659: Pagy I18n locale option is not validated before being used in a file path

July 28, 2026

Pagy::I18n.locale= did not validate its argument before using it as a path component to load the matching dictionary file (<locale>.yml). An application that assigns untrusted input to the locale — e.g. the common pattern Pagy::I18n.locale = params[:locale] — let that input influence which file Pagy attempted to load.

References

  • github.com/advisories/GHSA-2xmw-f8j8-wfxc
  • github.com/ddnexus/pagy/commit/efcf09690e9fa7d7abdfb987b785a55f87e287df
  • github.com/ddnexus/pagy/pull/908
  • github.com/ddnexus/pagy/releases/tag/43.5.6
  • github.com/ddnexus/pagy/security/advisories/GHSA-2xmw-f8j8-wfxc
  • nvd.nist.gov/vuln/detail/CVE-2026-54659

Code Behaviors & Features

Detect and mitigate CVE-2026-54659 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 43.0.0 before 43.5.6

Fixed versions

  • 43.5.6

Solution

Upgrade to version 43.5.6 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

gem/pagy/CVE-2026-54659.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:21 +0000.