{"id":"CVE-2022-1243","aliases":["CVE-2022-1243","GHSA-3vjf-82ff-p4r3"],"related":[],"kind":"vulnerability","state":"published","title":"CRHTLF can lead to invalid protocol extraction potentially leading to XSS in medialize/uri.js","summary":"CRHTLF can lead to invalid protocol extraction potentially leading to XSS in GitHub repository medialize/uri.js prior to 1.19.11.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"CRHTLF can lead to invalid protocol extraction potentially leading to XSS in GitHub repository medialize/uri.js prior to 1.19.11.","source":"cvelist"},{"lang":"en","text":"\\r, \\n and \\t characters in user-input URLs can potentially lead to incorrect protocol extraction when using npm package urijs prior to version 1.19.11.\n\nThis can lead to XSS when the module is used to prevent passing in malicious javascript: links into HTML or Javascript (see following example):\n````\nconst parse = require('urijs')\nconst express = require('express')\nconst app = express()\nconst port = 3000\n\ninput = \"ja\\r\\nvascript:alert(1)\"\nurl = parse(input)\n\nconsole.log(url)\n\napp.get('/', (req, res) => {\n if (url.protocol !== \"javascript:\") {res.send(\"<iframe src=\\'\" + input + \"\\'>CLICK ME!</iframe>\")}\n})\n\napp.listen(port, () => {\n console.log(`Example app listening on port ${port}`)\n})\n````","format":"markdown","source":"ghsa"},{"lang":"es","text":"CRHTLF puede conllevar a una extracción de protocolo no válida conllevando potencialmente a un ataque de tipo XSS en el repositorio de GitHub medialize/uri.js versiones anteriores a 1.19.11","source":"nvd"}],"published":"2022-04-05T15:05:18.000Z","modified":"2026-06-17T04:22:04.813Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.19.11","status":"affected"}],"vendor":"medialize","product":"medialize/uri.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.11"}],"ecosystem":"npm","package":"urijs","purl":"pkg:npm/urijs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.19.11"}],"vendor":"uri.js_project","product":"uri.js","cpe":"cpe:2.3:a:uri.js_project:uri.js:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/8c5afc47-1553-4eba-a98e-024e4cc3dfb7","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/medialize/uri.js/commit/b0c9796aa1a95a85f40924fb18b1e5da3dc8ffae","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1243","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/medialize/uri.js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-1243","url":"https://www.cve.org/CVERecord?id=CVE-2022-1243","licence":"CVE Terms of Use","modified":"2024-08-02T23:55:24.671Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3vjf-82ff-p4r3","url":"https://github.com/advisories/GHSA-3vjf-82ff-p4r3","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:46.778Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-1243","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1243","licence":"Public domain","modified":"2026-06-17T04:22:04.813Z"}],"updatedAt":"2026-11-25T22:58:10.431Z","epss":{"score":0.00711,"percentile":0.49341,"date":"2026-11-30T12:00:22.000Z"}}