{"schema":"threatline.record/2","record":{"id":"CVE-2026-113661","aliases":["GHSA-cv27-6wvh-8x7j"],"summary":"ApostropheCMS: Incomplete CVE-2026-53606: `meta http-equiv=refresh` `content` still ships `javascript:` / `data:` URLs","details":"### Summary\n\nCVE-2026-53606 expanded `allowedSchemesAppliedToAttributes` so named URL attributes (`action`, `formaction`, `data`, `poster`, `background`, later `ping`, `xlink:href`, …) go through `naughtyHref()`. A **URL nested inside `meta` `content`** (`http-equiv=refresh`) is not an attribute name on that list, so the embedded destination is never scheme-checked.\n\nDefault `allowedTags` still omit `meta`. Same non-default integrator config as 53606: allow `meta` plus `http-equiv` / `content`.\n\nOn **2.17.7**:\n\n```text\nsanitizeHtml(\n  '<meta http-equiv=\"refresh\" content=\"0;url=javascript:alert(1)\">',\n  { allowedTags: ['meta'], allowedAttributes: { meta: ['http-equiv', 'content'] } }\n)\n// => <meta http-equiv=\"refresh\" content=\"0;url=javascript:alert(1)\" />\n```\n\n`data:text/html,…` and arbitrary `https:` destinations also survive. `formaction=\"javascript:…\"` (53606) is stripped.\n\nPlease **Request CVE**. Credit: Finder + Reporter (`adrbogacz`).\n\n### Details\n\n`naughtyHref()` only runs when the attribute name is in `allowedSchemesAppliedToAttributes` (`index.js` ~385). Refresh URLs live in a `content` value of the form `0;url=…`, so the gate never fires. Adding `content` to that list wholesale would break ordinary meta `content` (description, viewport).\n\n**Fix:** when `http-equiv` is `refresh` (case-insensitive), parse the `; url=` destination and run `naughtyHref('meta', url)`. Drop `content` (or the tag) if the URL is rejected. Leave other `meta` `content` values alone.\n\n### PoC\n\nLocal `sanitize-html@2.17.7`. Output inspection only:\n\n```text\nnode -e '\nconst sanitize = require(\"sanitize-html\");\nconst opts = { allowedTags: [\"meta\"], allowedAttributes: { meta: [\"http-equiv\", \"content\"] } };\nfor (const html of [\n  \"<meta http-equiv=\\\"refresh\\\" content=\\\"0;url=javascript:alert(1)\\\">\",\n  \"<meta http-equiv=\\\"refresh\\\" content=\\\"0;url=data:text/html,aaa\\\">\",\n  \"<form><button formaction=\\\"javascript:alert(1)\\\">x</button></form>\",\n]) {\n  console.log(html, \"=>\", sanitize(html, html.includes(\"meta\") ? opts : { allowedTags: [\"form\",\"button\"], allowedAttributes: { button: [\"formaction\"] } }));\n}\n'\n```\n\nExpected: refresh `javascript:` / `data:` remain; 53606 `formaction` is removed. Do not attach a browser hang or stored-XSS page.\n\n### Impact\n\nAn integrator who allowed `meta` + `content` expecting `allowedSchemes` to apply (the 53606 configuration pattern) still emits a refresh to `javascript:`, `data:`, or an attacker `https:` URL. Stored XSS / open redirect for viewers of that HTML. Default config is not affected.","categories":["Libraries & packages"],"product":"sanitize-html","vendor":"apostrophecms","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-cv27-6wvh-8x7j","source_modified_at":"2026-10-20T18:15:34Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"sanitize-html"},"range":"< 2.18.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-113661","source_modified_at":"2026-10-21T15:53:24.980Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"apostrophe","vendor":"apostrophecms","versions":[{"version":"< 4.33.0","status":"affected"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-113661","source_modified_at":"2026-10-21T15:53:24.980Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"sanitize-html","vendor":"apostrophecms","versions":[{"version":"< 2.18.0","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-cv27-6wvh-8x7j","source_modified_at":"2026-10-20T18:30:03.592709324Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"sanitize-html","purl":"pkg:npm/sanitize-html"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"2.18.0"}],"type":"SEMVER"}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-cv27-6wvh-8x7j","source_modified_at":"2026-10-20T18:15:34Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"sanitize-html"},"version":"2.18.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-cv27-6wvh-8x7j","source_modified_at":"2026-10-20T18:30:03.592709324Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"sanitize-html","purl":"pkg:npm/sanitize-html"},"version":"2.18.0"}],"cvss":5.4,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00263,"percentile":0.17157,"score_date":"2026-10-23"},"published_at":"2026-10-20T17:11:20.577Z","modified_at":"2026-10-21T15:53:24.980Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-cv27-6wvh-8x7j","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-20T18:15:34Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-113661","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-21T15:53:24.980Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-cv27-6wvh-8x7j","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-20T18:30:03.592709324Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-113661","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-cv27-6wvh-8x7j","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/apostrophecms/apostrophe/commit/9500b8b0e1d630d5e07fbb5fd2c25ed0943845ce","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/apostrophecms/apostrophe/commit/f84fd41cbf6c22eb8d0008fc9c25df1f7130b350","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/apostrophecms/apostrophe/releases/tag/sanitize-html@2.18.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-cv27-6wvh-8x7j","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-10-21T14:24:37.938948Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-21T15:53:24.980Z","content_hash":"4dba372ff9297c96c8df0d641221749ae58b2deda43300ca0f43a653b2eda349"}}
