Skip to content

fix: upgrade nanoid to 3.3.17, 5.1.6 (CVE-2026-67213) - #5812

Closed
anupamme wants to merge 1 commit into
hexojs:masterfrom
anupamme:fix-repo-hexo-cve-2026-67213-nanoid
Closed

fix: upgrade nanoid to 3.3.17, 5.1.6 (CVE-2026-67213)#5812
anupamme wants to merge 1 commit into
hexojs:masterfrom
anupamme:fix-repo-hexo-cve-2026-67213-nanoid

Conversation

@anupamme

@anupamme anupamme commented Aug 9, 2026

Copy link
Copy Markdown

Summary

Upgrade nanoid from 3.3.11 to 3.3.17, 5.1.6 to fix CVE-2026-67213.

Vulnerability

Field Value
ID CVE-2026-67213
Severity HIGH
Scanner trivy
Rule CVE-2026-67213
File package-lock.json (dependency: nanoid)
Assessment Present in dependency tree, not confirmed reachable

Description: nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customA ...

Evidence

Scanner confirmation: trivy rule CVE-2026-67213 flagged this pattern.

Changes

  • package.json
  • package-lock.json

Behavior Preservation

The change is scoped to 2 files on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.


This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.


Automated security fix by OrbisAI Security

Automated dependency upgrade by OrbisAI Security
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

How to test

git clone -b fix-repo-hexo-cve-2026-67213-nanoid https://github.com/anupamme/hexo.git
cd hexo
npm install
npm test

@SukkaW

SukkaW commented Aug 9, 2026

Copy link
Copy Markdown
Member

Using overrides is never the good way to upgrade affected transitive dependencies. Fix the affected dependency instead.

@SukkaW SukkaW closed this Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants