Vulnerabilities in pkg:npm/hexo-theme-anzhiyu
PACKAGECVE-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.
pkg:npm/hexo-theme-anzhiyu
Vulnerability advisories affecting package pkg:npm/hexo-theme-anzhiyu. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-82jf-8f24-xq9m | CVE-2024-25865 | MODERATE | hexo-theme-anzhiyu Cross-site Scripting vulnerability |
CVE-2024-25865 at a Glance
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).
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.
npm install hexo-theme-anzhiyu@Latest secure release
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
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?
Which Hexo theme anzhiyu versions are affected?
What version fixes CVE-2024-25865?
Is hexo-theme-anzhiyu affected?
What is the CVSS score of CVE-2024-25865?
What CWE is associated with CVE-2024-25865?
How can I check npm dependencies for CVE-2024-25865?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}