CVE-2026-54659: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in ddnexus pagy
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.
AI Analysis
Technical Summary
The ddnexus pagy gem, a Ruby pagination library, contains a path traversal vulnerability (CWE-22) in the Pagy::I18n.locale= method in versions 43.0.0 through 43.5.5. This method stores locale values without sanitization and uses them as components in file paths for YAML locale files. An attacker can supply crafted locale parameters containing absolute paths or '../' sequences to read arbitrary YAML files on the filesystem, creating a file existence and readability oracle. The vulnerability is addressed in version 43.5.6.
Potential Impact
An attacker can exploit this vulnerability to read arbitrary YAML files on the server by manipulating the locale parameter. This may lead to information disclosure of sensitive configuration or data files. The CVSS 4.0 base score is 6.9 (medium severity), indicating a network-exploitable vulnerability without required privileges or user interaction, with low impact on confidentiality.
Mitigation Recommendations
Upgrade to pagy version 43.5.6 or later, where the vulnerability is fixed. No other official remediation or temporary fixes are documented. Until upgrading, avoid using untrusted input for locale settings or sanitize inputs to prevent path traversal sequences.
CVE-2026-54659: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in ddnexus pagy
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.
CVSS v4.0
Score 6.9medium
Affected software
ddnexus
pagy
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The ddnexus pagy gem, a Ruby pagination library, contains a path traversal vulnerability (CWE-22) in the Pagy::I18n.locale= method in versions 43.0.0 through 43.5.5. This method stores locale values without sanitization and uses them as components in file paths for YAML locale files. An attacker can supply crafted locale parameters containing absolute paths or '../' sequences to read arbitrary YAML files on the filesystem, creating a file existence and readability oracle. The vulnerability is addressed in version 43.5.6.
Potential Impact
An attacker can exploit this vulnerability to read arbitrary YAML files on the server by manipulating the locale parameter. This may lead to information disclosure of sensitive configuration or data files. The CVSS 4.0 base score is 6.9 (medium severity), indicating a network-exploitable vulnerability without required privileges or user interaction, with low impact on confidentiality.
Mitigation Recommendations
Upgrade to pagy version 43.5.6 or later, where the vulnerability is fixed. No other official remediation or temporary fixes are documented. Until upgrading, avoid using untrusted input for locale settings or sanitize inputs to prevent path traversal sequences.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T20:16:46.199Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a6932d19c2644c7f8557a2e
Added to database: 07/28/2026, 22:53:05 UTC
Last enriched: 07/31/2026, 14:25:28 UTC
Last updated: 09/10/2026, 20:00:49 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.