LiveActive security incident?Get immediate response
CVE Record

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

The package apexcharts before 3.24.0 are vulnerable to Cross-site Scripting (XSS) via lack of sanitization of graph legend fields.

MediumCVSS 6.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

ApexCharts versions before 3.24.0 can allow cross-site scripting through unsanitized chart legend fields. In business terms, a chart displaying attacker-influenced legend text could run unwanted script in a viewer’s browser, risking limited data exposure, page tampering, or disruption.

Executive priority

Treat as a moderate-priority remediation for applications that display user-controlled chart data. Prioritize internet-facing dashboards, multi-tenant portals, and administrative views where browser-session impact would matter.

Technical view

The issue is an XSS flaw in apexcharts caused by missing sanitization of graph legend fields. The supplied CVSS 3.1 score is 6.3 with network attack vector, low complexity, no privileges required, user interaction required, and low confidentiality, integrity, and availability impact.

Likely exposure

Applications rendering ApexCharts with untrusted or user-influenced legend fields are the likely exposure. The bundle identifies npm apexcharts and a WebJars npm package path; exact affected versions beyond “before 3.24.0” are not enumerated.

Exploitation context

The source bundle does not show CISA KEV listing or cite active exploitation. CVSS marks exploitation as proof-of-concept and requires user interaction, so urgency depends on whether attackers can influence chart legend content viewed by users.

Researcher notes

The upstream pull request and commit indicate a sanitization-related fix, but the bundle does not provide exploit details or CWE mapping. Validate dependency paths carefully because exposure may be direct npm usage or WebJars packaging.

Mitigation direction

  • Upgrade apexcharts to version 3.24.0 or later where directly used.
  • Update affected WebJars npm packaging if your Java stack consumes ApexCharts that way.
  • Review vendor and Snyk guidance for package-specific upgrade details.
  • Avoid rendering untrusted legend content until patched or otherwise safely handled.

Validation and detection

  • Inventory frontend and server-rendered assets for apexcharts dependency usage.
  • Check manifests and lockfiles for apexcharts versions earlier than 3.24.0.
  • Review WebJars npm dependencies for affected ApexCharts packaging.
  • Confirm chart legend values are not attacker-controlled or unsanitized.
  • Retest affected chart views after upgrading.
Prepared
Confidence
high
Sources
6

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-23327 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
6.3 (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:L/E:P/RL:O

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
5Source 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
6.3CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O2.83.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.3Medium
CVSS 3.1 vector shape for CVE-2021-23327Attack 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:L/E:P/RL:O

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/aapexchartsunspecifiedListed
Weakness

CWE details

No CWE listed

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