CVE-2024-25865: Hexo theme anzhiyu Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-82jf-8f24-xq9m
CVSS 6.1
CWE-80 CWE-79
Published
Advisory Summary

CVE-2024-25865 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Hexo theme anzhiyu libraries in the npm ecosystem. The issue involves hexo-theme-anzhiyu cross-site scripting vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2024-25865 at a Glance

CVE Identifier CVE-2024-25865
GHSA Identifier GHSA-82jf-8f24-xq9m
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Hexo theme anzhiyu
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-25865

To remediate this vulnerability, upgrade all affected Hexo theme anzhiyu dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

hexo-theme-anzhiyu fixed: Latest secure release
npm install hexo-theme-anzhiyu@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls hexo-theme-anzhiyu

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-25865, inspect your project dependencies using npm:

npm ls hexo-theme-anzhiyu

Analyze the terminal output to locate any version of Hexo theme anzhiyu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls hexo-theme-anzhiyu command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Hexo theme anzhiyu, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Cross Site Scripting (XSS) vulnerability in hexo-theme-anzhiyu v1.6.12, allows remote attackers to execute arbitrary code via the algolia search function.

CVE-2024-25865 Affected Hexo theme anzhiyu Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
hexo-theme-anzhiyu
npm
1.6.12
All 1 versions
1.6.12
None specified

References

Frequently Asked Questions

What is CVE-2024-25865?
CVE-2024-25865 is a security vulnerability in Hexo theme anzhiyu involving hexo-theme-anzhiyu Cross-site Scripting vulnerability under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Hexo theme anzhiyu versions are affected?
Affected versions include releases prior to current release patches across affected packages: hexo-theme-anzhiyu.
What version fixes CVE-2024-25865?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is hexo-theme-anzhiyu affected?
Yes, hexo-theme-anzhiyu is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-25865?
CVE-2024-25865 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2024-25865?
CVE-2024-25865 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.).
How can I check npm dependencies for CVE-2024-25865?
Run the dependency tree command: 'npm ls hexo-theme-anzhiyu'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-82jf-8f24-xq9m",
  "modified" : "2025-03-31T13:36:59Z",
  "published" : "2024-03-03T00:30:32Z",
  "aliases" : [ "CVE-2024-25865" ],
  "summary" : "hexo-theme-anzhiyu Cross-site Scripting vulnerability",
  "details" : "Cross Site Scripting (XSS) vulnerability in hexo-theme-anzhiyu v1.6.12, allows remote attackers to execute arbitrary code via the algolia search function.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "hexo-theme-anzhiyu"
    },
    "versions" : [ "1.6.12" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-25865"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/anzhiyu-c/hexo-theme-anzhiyu/issues/200"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/anzhiyu-c/hexo-theme-anzhiyu"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79", "CWE-80" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-06T16:08:31Z",
    "nvd_published_at" : "2024-03-02T22:15:50Z"
  }
}