LiveActive security incident?Get immediate response
CVE Record

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

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.

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

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.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

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 · low confidence lookup

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
Vulnerability profileCVE Program record
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

Official CVE source material

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.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

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

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N2.82.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.4Medium
CVSS 3.1 vector shape for CVE-2021-23411Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/aanchorme0Listed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.