{"id":"CVE-2021-23411","aliases":["EUVD-2021-1495","GHSA-w4wq-rvmq-77x7"],"status":"published","title":"Cross-site Scripting (XSS)","description":"Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the main functionality. It accepts input that can result in the output (an anchor a tag) containing undesirable Javascript code that can be executed upon user interaction.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.01164,"percentile":0.67679,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2021-07-21T14:50:11Z","modified":"2026-06-17T03:38:42Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"anchorme","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.1.2"}]}]},{"source":"osv","ecosystem":"npm","package":"anchorme","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.1.2"}]}]}],"products":[{"vendor":"anchorme_project","product":"anchorme"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-ANCHORME-1311008","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1320695","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/alexcorvi/anchorme.js/blob/gh-pages/src/transform.ts%23L81","tags":["x_refsource_MISC","x_transferred","Broken Link","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23411","tags":["advisory"]},{"url":"https://github.com/alexcorvi/anchorme.js/blob/gh-pages/src/transform.ts#23L81","tags":["web"]},{"url":"https://github.com/advisories/GHSA-w4wq-rvmq-77x7"}],"sources":{"cve":[{"id":"CVE-2021-23411","title":"Cross-site Scripting (XSS)","description":"Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the main functionality. It accepts input that can result in the output (an anchor a tag) containing undesirable Javascript code that can be executed upon user interaction.","status":"published","published":"2021-07-21T14:50:11.146Z","modified":"2024-09-16T16:38:34.717Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2021-1495","description":"Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the main functionality. It accepts input that can result in the output (an anchor a tag) containing undesirable Javascript code that can be executed upon user interaction.","status":"published","published":"2021-07-21T14:50:11Z","modified":"2024-09-16T16:38:34Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T00:55:49.526752Z"}],"ghsa":[{"id":"GHSA-w4wq-rvmq-77x7","title":"Cross-site scripting in anchorme","description":"All versions of package anchorme are vulnerable to Cross-site Scripting (XSS) via the main functionality.","status":"published","published":"2021-07-26T21:23:58Z","modified":"2023-02-01T05:06:11Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:37.441118Z"}],"nvd":[{"id":"CVE-2021-23411","description":"Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the main functionality. It accepts input that can result in the output (an anchor a tag) containing undesirable Javascript code that can be executed upon user interaction.","status":"published","published":"2021-07-21T15:15:15.703Z","modified":"2026-06-17T03:38:42.85Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:56.185362Z"}],"osv":[{"id":"GHSA-w4wq-rvmq-77x7","title":"Cross-site scripting in anchorme","description":"All versions of package anchorme are vulnerable to Cross-site Scripting (XSS) via the main functionality.","status":"published","published":"2021-07-26T21:23:58Z","modified":"2023-11-08T04:05:08.065468Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:58.04805Z"}]}}
