Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-54659 EUVD-2026-50088GHSA-2xmw-f8j8-wfxc

Pagy I18n locale option is not validated before being used in a file path

Published Jul 28, 2026 · Updated Jul 29, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
ddnexus pagy >= 43.0.0, < 43.5.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 ruby-pagy No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems pagy >= 43.0.0, < 43.5.6 43.5.6 GHSA-2xmw-f8j8-wfxc

References