# CVE-2021-23411: Cross-site Scripting (XSS)

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-07-21T14:50:11.146Z
- Modified: 2026-06-17T03:38:42.850Z
- Also known as: GHSA-w4wq-rvmq-77x7
- Weaknesses: CWE-79
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- anchorme: before unspecified
- anchorme (npm): up to 2.1.2
- anchorme_project anchorme: no versions given

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-ANCHORME-1311008> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1320695> (exploit, third-party-advisory, web)
- <https://github.com/alexcorvi/anchorme.js/blob/gh-pages/src/transform.ts%23L81> (broken-link, 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)

## Sources

- CVE List: [CVE-2021-23411](https://www.cve.org/CVERecord?id=CVE-2021-23411), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-w4wq-rvmq-77x7](https://github.com/advisories/GHSA-w4wq-rvmq-77x7), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-23411](https://nvd.nist.gov/vuln/detail/CVE-2021-23411), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23411 · Whole record: https://cve.day/CVE-2021-23411.json · Rebuilt by cve.day 2026-11-25T22:58:02.765Z
