{"id":"CVE-2026-62948","summary":"OpenWrt odhcpd/LuCI: unauthenticated DHCPv6 client can inject lease-file lines via FQDN hostname → stored XSS in the LuCI admin UI","details":"OpenWrt is a Linux operating system targeting embedded devices. Prior to 25.12.5, odhcpd writes a DHCPv6 client FQDN option 39 hostname into /tmp/odhcpd.leases through src/statefiles.c statefiles_write_state6() and statefiles_write_state4() without escaping, allowing newline injection of forged lease lines that LuCI rpcd-mod-luci getDHCPLeases displays through htdocs/luci-static/resources/view/status/include/40_dhcp.js and htdocs/luci-static/resources/luci.js dom.append as live HTML in the Active DHCPv6 Leases admin page. This vulnerability is fixed in 25.12.5.","aliases":["GHSA-hhmc-92hw-535f"],"modified":"2026-07-22T03:49:52.052454Z","published":"2026-07-15T17:50:43.790Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-117","CWE-150","CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62948.json"},"references":[{"type":"WEB","url":"https://github.com/openwrt/openwrt/releases/tag/v25.12.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62948.json"},{"type":"ADVISORY","url":"https://github.com/openwrt/openwrt/security/advisories/GHSA-hhmc-92hw-535f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62948"},{"type":"FIX","url":"https://github.com/openwrt/luci/commit/55379d04fcc3c605003a5001d6135cf02ae6048a"},{"type":"FIX","url":"https://github.com/openwrt/odhcpd/commit/68f382690bfaec56d5b1f31c3c31c48bcb642e3a"},{"type":"FIX","url":"https://github.com/openwrt/odhcpd/pull/404"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openwrt/luci","events":[{"introduced":"0"},{"fixed":"55379d04fcc3c605003a5001d6135cf02ae6048a"}],"database_specific":{"source":"REFERENCES"}},{"type":"GIT","repo":"https://github.com/openwrt/odhcpd","events":[{"introduced":"0"},{"fixed":"68f382690bfaec56d5b1f31c3c31c48bcb642e3a"}],"database_specific":{"source":"REFERENCES"}},{"type":"GIT","repo":"https://github.com/openwrt/openwrt","events":[{"introduced":"0"},{"fixed":"f0a60eee2fe051741c643ea6118718aae1ef17fb"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"25.12.5"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v25.12.4","v25.12.3","v25.12.2","v25.12.1","v25.12.0","v25.12.0-rc5","v25.12.0-rc4","v25.12.0-rc3","v25.12.0-rc2","v25.12.0-rc1","reboot"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62948.json","vanir_signatures_modified":"2026-07-22T03:49:52Z","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/68f382690bfaec56d5b1f31c3c31c48bcb642e3a","target":{"file":"src/statefiles.c"},"deprecated":false,"digest":{"line_hashes":["222199056557108100412948030197406158274","179951072711141737501673157033915307745","48835114850316979340087807439325385449","245224250924620970701387765855088283209","110222455626083028841038589741473283398","95903326584314967842773648666088372354","82832356609876502096747738431575101449","82584690780047370019648044612504933407","56714378486760030174905488444565544130","62146115244480036161070870116018134560","267303806260021675208143748746349505373","334272644550395447436825271068027852572","103650148878138585015664861531389709141","168876642837305772516827685731459179411","137726075882607834738509062146406291521","121744179478910298403968167831348063244","56714378486760030174905488444565544130","62146115244480036161070870116018134560"],"threshold":0.9},"id":"CVE-2026-62948-046d84d8","signature_type":"Line"},{"deprecated":false,"digest":{"function_hash":"219921854696407551311078231888675570542","length":870},"id":"CVE-2026-62948-05dcb415","signature_type":"Function","signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/68f382690bfaec56d5b1f31c3c31c48bcb642e3a","target":{"file":"src/statefiles.c","function":"statefiles_write_state4"}},{"target":{"file":"src/statefiles.c","function":"statefiles_write_state6"},"deprecated":false,"digest":{"function_hash":"26085049810060182175915558190858673815","length":865},"id":"CVE-2026-62948-ced7109f","signature_type":"Function","signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/68f382690bfaec56d5b1f31c3c31c48bcb642e3a"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"}]}