{"vuln_id":"CVE-2026-80227","aliases":["GHSA-76wx-w7ww-5xfq"],"description":"Incorrect Comparison vulnerability in ash-project ash_sql allows a user to pad a string field with tab, newline, carriage-return, or form-feed characters and pass a trimmed uniqueness or equality check in the database that the same expression would fail in memory (or the reverse).\n\nstring_trim/1 compiles to REGEXP_REPLACE patterns built from an Elixir string in which \\s is the escape for a single space (codepoint 32), not a regex whitespace class. The generated SQL therefore removes only literal spaces and leaves tabs, newlines, carriage returns, and form feeds in place, whereas String.trim/1 in Elixir removes them all. Any Ash filter, validation, or identity that relies on string_trim/1 then behaves differently depending on whether Ash pushes the expression down to SQL or evaluates it in memory, so padded input can register a near-duplicate value or slip past a trimmed comparison.\n\nThis issue affects ash_sql: from 0.1.0 before 0.7.1.","published_at":"2026-08-30T12:17:18.710000Z","modified_at":"2026-11-19T09:18:01.723000Z","first_seen_at":"2026-11-21T19:15:46.562270Z","severity":"low","severity_source":"nvd","cvss_score":2.1,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/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","cwe":["CWE-697"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00389,"epss_percentile":0.33759,"nvd_status":"Deferred","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-80227"},"matched_alias":null,"items":[{"id":3427,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-80227: Incorrect Comparison vulnerability in ash-project ash_sql allows a user to pad a string field with tab, newline, carriage-return, or form-feed characters and p…","summary":"Incorrect Comparison vulnerability in ash-project ash_sql allows a user to pad a string field with tab, newline, carriage-return, or form-feed characters and pass a trimmed uniqueness or equality check in the database that the same expression would fail in memory (or the reverse).\n\nstring_trim/1 compiles to REGEXP_REPLACE patterns built from an Elixir string in which \\s is the escape for a single space (codepoint 32), not a regex whitespace class. The generated SQL therefore removes only literal spaces and leaves tabs, newlines, carriage returns, and form feeds in place, whereas String.trim/1 in Elixir removes them all. Any Ash filter, validation, or identity that relies on string_trim/1 then behaves differently depending on whether Ash pushes the expression down to SQL or evaluates it in memory, so padded input can register a near-duplicate value or slip past a trimmed comparison.\n\nThis issue affects ash_sql: from 0.1.0 before 0.7.1.\n\nReferences:\nhttps://cna.erlef.org/cves/CVE-2026-80227.html\nhttps://github.com/ash-project/ash_sql/commit/1b11b5d8bc5321e2e6acac21594ef08f61986117\nhttps://github.com/ash-project/ash_sql/commit/dd092ed273dec7bd2194352f24a39229fc8ae68b\nhttps://github.com/ash-project/ash_sql/security/advisories/GHSA-76wx-w7ww-5xfq\nhttps://osv.dev/vulnerability/EEF-CVE-2026-80227\nhttps://github.com/ash-project/ash_sql/security/advisories/GHSA-76wx-w7ww-5xfq","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80227","published_at":"2026-08-30T12:17:18.710000Z","updated_at":"2026-11-19T09:18:01.723000Z","fetched_at":"2026-11-21T19:15:31.479012Z","severity":"low","cvss_score":2.1,"epss":0.00389,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-80227","vuln_ids":["CVE-2026-80227","GHSA-76WX-W7WW-5XFQ"],"tags":["CWE-697"],"cluster_id":3595,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3427","html":"https://vulnwatch.ve1ve2.com/item/3427"}}]}