CRHTLF can lead to invalid protocol extraction potentially leading to XSS in medialize/uri.js
cve-program · CVE-2022-1243
PublishedCRHTLF can lead to invalid protocol extraction potentially leading to XSS in GitHub repository medialize/uri.js prior to 1.19.11.
Read the publisher's advisoryeuvd · EUVD-2022-1612
PublishedCRHTLF can lead to invalid protocol extraction potentially leading to XSS in GitHub repository medialize/uri.js prior to 1.19.11.
Read the publisher's advisorynvd · CVE-2022-1243
PublishedCRHTLF can lead to invalid protocol extraction potentially leading to XSS in GitHub repository medialize/uri.js prior to 1.19.11.
Read the publisher's advisoryosv · GHSA-3vjf-82ff-p4r3
Published\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. This can lead to XSS when the module is used to prevent passing in malicious javascript: links into HTML or Javascript (see following example): ```` const parse = require('urijs') const express = require('express') const app = express() const port = 3000 input = "ja\r\nvascript:alert(1)" url = parse(input) console.log(url) app.get('/', (req, res) => { if (url.protocol !== "javascript:") {res.send("<iframe src=\'" + input + "\'>CLICK ME!</iframe>")} }) app.listen(port, () => { console.log(`Example app listening on port ${port}`) }) ````
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2022-1243 · CVE overview and exploitation status
cve-program · CVE-2022-1243
- https://huntr.dev/bounties/8c5afc47-1553-4eba-a98e-024e4cc3dfb7
- https://github.com/medialize/uri.js/commit/b0c9796aa1a95a85f40924fb18b1e5da3dc8ffae
euvd · EUVD-2022-1612
- https://huntr.dev/bounties/8c5afc47-1553-4eba-a98e-024e4cc3dfb7
- https://github.com/medialize/uri.js/commit/b0c9796aa1a95a85f40924fb18b1e5da3dc8ffae
nvd · CVE-2022-1243
- https://github.com/medialize/uri.js/commit/b0c9796aa1a95a85f40924fb18b1e5da3dc8ffae
- https://huntr.dev/bounties/8c5afc47-1553-4eba-a98e-024e4cc3dfb7
osv · GHSA-3vjf-82ff-p4r3
Related changes
Linked by CVE identifier- Jira Software Data Center: Injection urijs Dependency (CVE-2022-1243) · Security advisory · 17 Nov 2026