CVE-2021-23411
MEDIUM 6.1CVSS 3.1Cross-site scripting in anchorme
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.
- Published
- 21 Jul 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-w4wq-rvmq-77x7
- Sources
- NVDJSONOSV GHSA-w4wq-rvmq-77x7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | anchorme_project | anchormecpe:2.3:a:anchorme_project:anchorme:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | anchorme | <= 2.1.2 |
References
- https://github.com/alexcorvi/anchorme.js/blob/gh-pages/src/transform.ts%23L81 · Broken Link, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1320695 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-ANCHORME-1311008 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23411 · ADVISORY
- https://github.com/alexcorvi/anchorme.js/blob/gh-pages/src/transform.ts#23L81 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 21 Jul 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Jul 2021)