Security readout for executives and security teams
Plain-English summary
anchorme turns detected URLs into clickable links. This CVE means affected output can include unwanted JavaScript in an anchor element, which may run after a user clicks or otherwise interacts. Business risk is moderate: it can affect users viewing untrusted content, but exploitation requires user interaction and sources do not show active exploitation.
Executive priority
Prioritize remediation for public or authenticated user-content surfaces that display linkified text. This is not evidenced as actively exploited, but XSS can undermine trust, expose user data, and support account-level abuse when present in sensitive workflows.
Technical view
CVE-2021-23411 is a cross-site scripting issue in anchorme's main functionality. The package can accept input that causes generated anchor output to contain undesirable JavaScript. CVSS 3.1 is 5.4: network reachable, low complexity, no privileges required, user interaction required, with low confidentiality and integrity impact.
Likely exposure
Exposure is most likely in applications that use anchorme to linkify untrusted text, comments, messages, profiles, tickets, or other user-controlled content. The bundle identifies anchorme and references both npm and WebJars NPM advisories. Evidence does not define exact deployed application types or fixed versions.
Exploitation context
The provided CVE data says exploitation requires user interaction. KEV is false, and the supplied sources do not report active exploitation. The practical scenario is a user interacting with crafted linkified content that causes script execution in the affected page context.
Researcher notes
The source bundle does not provide CWE mappings, detailed affected version ranges, or a named fixed release. Keep conclusions constrained to anchorme behavior, generated anchor output, user interaction requirement, and CVSS 5.4 impact. Avoid assuming exploit availability or patch details beyond referenced advisories.
Mitigation direction
- Inventory direct and transitive use of anchorme and its WebJars NPM distribution.
- Check the referenced Snyk and vendor project guidance for patched versions or recommended constraints.
- Avoid rendering anchorme output from untrusted input without appropriate HTML sanitization.
- Treat affected pages handling user-generated content as higher priority.
- Add regression tests for JavaScript-bearing link output being blocked or neutralized.
Validation and detection
- Search dependency manifests and lockfiles for anchorme and org.webjars.npm entries.
- Identify routes or components that pass user-controlled text into anchorme.
- Confirm generated anchors cannot contain executable JavaScript from untrusted input.
- Review security scanner results against CVE-2021-23411 or SNYK-JS-ANCHORME-1311008.
- Verify remediation with focused unit tests and browser-level regression coverage where applicable.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CVE-2021-23411 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 5.4 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N2.82.5Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
5.4MediumVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Source materials
- CVE List V5 sourceCVE List V5
- https://snyk.io/vuln/SNYK-JS-ANCHORME-1311008CVE reference · x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1320695CVE reference · x_refsource_MISC
- https://github.com/alexcorvi/anchorme.js/blob/gh-pages/src/transform.ts%23L81CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
