# CVE-2026-54659: Pagy I18n locale option is not validated before being used in a file path

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-28T22:25:29.000Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-2xmw-f8j8-wfxc
- Weaknesses: CWE-22, CWE-200
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- ddnexus pagy: >= 43.0.0, < 43.5.6
- pagy (RubyGems): from 43.0.0 before 43.5.6

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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> (exploit, web)
- <https://github.com/ddnexus/pagy/pull/908> (web)
- <https://github.com/ddnexus/pagy/commit/efcf09690e9fa7d7abdfb987b785a55f87e287df> (web)
- <https://github.com/ddnexus/pagy/releases/tag/43.5.6> (web)
- <https://github.com/ddnexus/pagy> (package)

## Sources

- CVE List: [CVE-2026-54659](https://www.cve.org/CVERecord?id=CVE-2026-54659), CVE Terms of Use, modified 2026-07-29
- GitHub Advisory Database: [GHSA-2xmw-f8j8-wfxc](https://github.com/advisories/GHSA-2xmw-f8j8-wfxc), CC-BY-4.0, modified 2026-07-28
- NVD: [CVE-2026-54659](https://nvd.nist.gov/vuln/detail/CVE-2026-54659), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-54659 · Whole record: https://cve.day/CVE-2026-54659.json · Rebuilt by cve.day 2026-11-25T22:59:30.394Z
