Skip to content

fix: upgrade js-yaml to 4.3.1, 3.15.1 (GHSA-5p4m-2wfm-xmqj) - #5808

Closed
anupamme wants to merge 1 commit into
hexojs:masterfrom
anupamme:fix-repo-hexo-ghsa-5p4m-2wfm-xmqj-js-yaml
Closed

fix: upgrade js-yaml to 4.3.1, 3.15.1 (GHSA-5p4m-2wfm-xmqj)#5808
anupamme wants to merge 1 commit into
hexojs:masterfrom
anupamme:fix-repo-hexo-ghsa-5p4m-2wfm-xmqj-js-yaml

Conversation

@anupamme

@anupamme anupamme commented Aug 8, 2026

Copy link
Copy Markdown

Summary

Upgrade js-yaml from 4.1.1 to 4.3.1, 3.15.1 to fix GHSA-5p4m-2wfm-xmqj.

Vulnerability

Field Value
ID GHSA-5p4m-2wfm-xmqj
Severity HIGH
Scanner trivy
Rule GHSA-5p4m-2wfm-xmqj
File package-lock.json (dependency: js-yaml)
Assessment Defensive hardening

Description: JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported

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 patch removes an exploit primitive — a code pattern that, while not independently exploitable today, could be chained with other weaknesses by automated exploit-development tooling. Proactive removal of such primitives raises the bar against increasingly capable automated attack tools.


Automated security fix by OrbisAI Security

Automated dependency upgrade by OrbisAI Security
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

How to test

git clone -b fix-repo-hexo-ghsa-5p4m-2wfm-xmqj-js-yaml https://github.com/anupamme/hexo.git
cd hexo
npm install
npm test

@stevenjoezhang

Copy link
Copy Markdown
Member

Superseded by #5792

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