{
  "id": "security/javascript/WebCoder49__code-input/2026-11-01-value-setter-dom-xss",
  "title": "Setting .value on a code-input element writes it as unescaped HTML (DOM XSS)",
  "category": "security",
  "type": "xss",
  "severity": "medium",
  "cvss": {
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
    "score": 6.1
  },
  "ecosystem": "javascript",
  "project": {
    "owner": "WebCoder49",
    "repo": "code-input",
    "url": "https://github.com/WebCoder49/code-input"
  },
  "affected_versions": [
    ">= 2.6.0, <= 2.9.0"
  ],
  "fixed_version": "2.10.0 (backports 2.9.1, 2.8.5, 2.7.4, 2.6.9)",
  "status": "published",
  "disclosure": {
    "channel": "email",
    "ghsa_id": "GHSA-rv9c-r3v2-pwf3",
    "cve_id": null,
    "url": "https://github.com/WebCoder49/code-input/security/advisories/GHSA-rv9c-r3v2-pwf3",
    "reported_at": "2026-11-01T15:17:00+03:00",
    "published_at": "2026-11-17T16:27:05+03:00",
    "accepted_at": null
  },
  "summary": "Under some conditions, setting the value of a code-input element from JavaScript inserts that value into the DOM as unescaped HTML, so script in the value can run with access to the whole page. Fixed in 2.10.0 and backported to earlier minor lines.",
  "discovered_at": "2026-11-01T00:00:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-11-17T17:25:00+03:00",
  "pr": null
}
