CVE-2026-54659
Pagy is agnostic pagination in plain Ruby. From 43.0.0 until …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- 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
- github.com/advisories/GHSA-2xmw-f8j8-wfxc
- nvd.nist.gov/vuln/detail/CVE-2026-54659
- cve.org/CVERecord?id=CVE-2026-54659
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.