CVE-2026-54659

Severity CVSS v4.0:
MEDIUM
Type:
CWE-22 Path Traversal
Publication date:
28/07/2026
Last modified:
30/07/2026

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 .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.