SecurityContext

CVE-2021-25987: Hexo - Stored XSS

  • Cve: CVE-2021-25987
  • Name: Hexo - Stored XSS
  • Description: Hexo versions 0.0.1 to 5.4.0 are vulnerable against stored XSS. The post “body” and “tags” don’t sanitize malicious javascript during web page generation. Local unprivileged attacker can inject arbitrary code.
  • Impact: Local attackers can execute arbitrary scripts in users' browsers, leading to session hijacking or defacement.
  • Remediation: Update to the latest version beyond 5.4.0 that fixes the vulnerability.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.6
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00339
  • Epss percentile: 0.27622
  • Assignee: [email protected]
  • Published at: 2021-11-30T14:15:07Z
  • Age in days: 1820
  • Modified at: 2026-06-17T03:42:44Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-25987
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/hexojs/hexo/commit/5170df2d3fa9c69e855c4b7c2b084ebfd92d5200nvdPatch, Third Party Advisory
https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25987nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
hexo:hexo>= 0.0.1, <= 5.4.0nonvd/v1/products/hexo/hexo

Projects

RepositoryLink kindsIndexedUrl
hexojs/hexocommit, issues, package, pullyes/v1/repositories/hexojs/hexo

Index

  • Repositories: 2
  • Packages: 1
  • Checked, none or zero: repositories high signal

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts