{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-54659","id":"CVE-2026-54659","title":"Pagy I18n locale option is not validated before being used in a file path","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.","descriptionLong":"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.","published":"2026-07-28T22:25:35.231Z","updated":"2026-10-28T02:31:12.441172985Z","reserved":"2026-06-15T20:16:46.199Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":6.9,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"}],"rating":"medium","products":["ddnexus pagy"],"affectedProducts":[{"vendor":"ddnexus","product":"pagy","defaultStatus":null,"versions":[{"version":">= 43.0.0, < 43.5.6","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"pagy","purl":"pkg:gem/pagy","ranges":[">=43.0.0 <43.5.6"],"fixed":["43.5.6"],"advisory":"GHSA-2xmw-f8j8-wfxc"}],"cwes":["CWE-22","CWE-200"],"aliases":["GHSA-2xmw-f8j8-wfxc"],"references":[{"url":"https://github.com/ddnexus/pagy/security/advisories/GHSA-2xmw-f8j8-wfxc","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/ddnexus/pagy/pull/908","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/ddnexus/pagy/commit/efcf09690e9fa7d7abdfb987b785a55f87e287df","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/ddnexus/pagy/releases/tag/43.5.6","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54659.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54659","tags":["advisory"]},{"url":"https://github.com/ddnexus/pagy","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00369,"epssPercentile":0.31386,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-54659","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54659","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-54659","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2xmw-f8j8-wfxc","ok":true,"note":"GHSA-2xmw-f8j8-wfxc"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-54659","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}