Vulnerability · Published Jul 28, 2026 · Assigned by GitHub_M
CVE-2026-54659Pagy I18n locale option is not validated before being used in a file path
Medium 6.9
In plain English
A medium-severity path traversal in pagy from ddnexus. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 <locale>.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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| RubyGems | pagy | 43.5.6 | GHSA-2xmw-f8j8-wfxc |
| Ubuntu:26.10 | ruby-pagy | no fix listed | UBUNTU-CVE-2026-54659 |
Affected products (as reported)
Weakness: CWE-22, CWE-200 · Vector: 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
References
- https://github.com/ddnexus/pagy/security/advisories/GHSA-2xmw-f8j8-wfxc x_refsource_CONFIRM
- https://github.com/ddnexus/pagy/pull/908 x_refsource_MISC
- https://github.com/ddnexus/pagy/commit/efcf09690e9fa7d7abdfb987b785a55f87e287df x_refsource_MISC
- https://github.com/ddnexus/pagy/releases/tag/43.5.6 x_refsource_MISC