CVE-2026-66353Doggo vulnerable to cross-site scripting via unescaped date field values
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in woylie doggo allows Reflected XSS. Doggo.normalize_value/2 in lib/doggo.ex returned date field values wrapped in {:safe, ...}, the Phoenix.HTML marker meaning "already escaped, emit verbatim", without escaping them, so the value reached the value attribute of the <input> rendered by the field component unchanged. Any application rendering <.field type="date"> over user-controlled params is affected through the ordinary Phoenix form round-trip, where a failed validation re-renders the submitted value. The pattern kept exactly the first ten bytes and discarded shorter values, capping a payload at ten bytes: enough to terminate the attribute and open an element or attach a short event handler, not enough to place attacker-chosen script inline. Only type="date" is affected. This issue affects doggo: from 0.1.0 before 0.14.8.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- woylie doggo: affected: 0.1.0 to before 0.14.8; fixed in
0.14.8 - woylie doggo: affected: ae65fed72982ec97f95af931686c627b19c2b58d to before 0161c976a114a4a4faee22d599b3fd5f147fc443; fixed in
0161c976a114a4a4faee22d599b3fd5f147fc443
Workaround: Either of these closes the hole without upgrading. Use type="text" instead of type="date" for fields whose value can come from user-submitted params. The text branch delegates to Phoenix.HTML.Form.normalize_value/2, which returns a bare string that HEEx then escapes. Alternatively, pass an explicit value already validated as an ISO 8601 date rather than letting the component read it from the form field, so the value reaching the unescaped branch contains no metacharacters.
Vendor advisories:
- https://github.com/woylie/doggo/security/advisories/GHSA-w9rp-cf93-86pj (vendor-advisory)
- https://github.com/woylie/doggo/commit/0161c976a114a4a4faee22d599b3fd5f147fc443 (patch)
References
- https://github.com/woylie/doggo/security/advisories/GHSA-w9rp-cf93-86pj
- https://cna.erlef.org/cves/CVE-2026-66353.html
- https://osv.dev/vulnerability/EEF-CVE-2026-66353
- https://github.com/woylie/doggo/commit/ae65fed72982ec97f95af931686c627b19c2b58d
- https://github.com/woylie/doggo/commit/0161c976a114a4a4faee22d599b3fd5f147fc443
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.