{"id":"CVE-2026-66353","aliases":["CVE-2026-66353","EEF-CVE-2026-66353","GHSA-w9rp-cf93-86pj"],"related":[],"kind":"vulnerability","state":"published","title":"Doggo vulnerable to cross-site scripting via unescaped date field values","summary":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in woylie doggo allows Reflected XSS.\n\nDoggo.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.\n\nThis issue affects doggo: from 0.1.0 before 0.14.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in woylie doggo allows Reflected XSS.\n\nDoggo.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.\n\nThis issue affects doggo: from 0.1.0 before 0.14.8.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in woylie doggo allows Reflected XSS.\n\n`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.\n\nThis issue affects doggo: from 0.1.0 before 0.14.8.\n\n## Workarounds\n\nEither of these closes the hole without upgrading.\n\nUse `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.\n\nAlternatively, 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.","format":"markdown","source":"eef"}],"published":"2026-08-27T16:44:59.553Z","modified":"2026-11-25T06:31:00.246Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"0.14.8","status":"affected"}],"vendor":"woylie","product":"doggo","package":"doggo","cpe":"cpe:2.3:a:woylie:doggo:*:*:*:*:*:*:*:*","repo":"https://github.com/woylie/doggo","source":"cvelist"},{"ranges":[{"type":"git","introduced":"ae65fed72982ec97f95af931686c627b19c2b58d","fixed":"0161c976a114a4a4faee22d599b3fd5f147fc443","status":"affected"}],"vendor":"woylie","product":"doggo","package":"woylie/doggo","cpe":"cpe:2.3:a:woylie:doggo:*:*:*:*:*:*:*:*","repo":"https://github.com/woylie/doggo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.14.8"}],"ecosystem":"Hex","package":"doggo","purl":"pkg:hex/doggo","source":"eef"},{"ranges":[{"type":"git","introduced":"ae65fed72982ec97f95af931686c627b19c2b58d","status":"affected","fixed":"0161c976a114a4a4faee22d599b3fd5f147fc443"}],"repo":"https://github.com/woylie/doggo","source":"eef"}],"references":[{"url":"https://github.com/woylie/doggo/security/advisories/GHSA-w9rp-cf93-86pj","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-66353.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-66353","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/woylie/doggo/commit/ae65fed72982ec97f95af931686c627b19c2b58d","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/woylie/doggo/commit/0161c976a114a4a4faee22d599b3fd5f147fc443","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/doggo","tags":["package"],"sources":["eef"]}],"credits":["Jonatan Männchen / EEF","Mathias Polligkeit"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-28T14:01:30.248Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-66353","url":"https://www.cve.org/CVERecord?id=CVE-2026-66353","licence":"CVE Terms of Use","modified":"2026-11-19T08:42:07.027Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-66353","url":"https://osv.dev/vulnerability/EEF-CVE-2026-66353","licence":"CC-BY-4.0","modified":"2026-11-25T06:31:00.246Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-66353","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66353","licence":"Public domain","modified":"2026-11-19T09:17:49.700Z"}],"updatedAt":"2026-11-25T22:59:35.540Z","epss":{"score":0.00394,"percentile":0.35768,"date":"2026-12-01T12:00:22.000Z"}}