Skip to content

[Vulnerability] grafana/grafana: Denial of Service (DoS) #571

@github-actions

Description

@github-actions

Potential Security Vulnerability Detected

Repository: grafana/grafana
Commit: 4467967
Author: renovate-sh-app[bot]
Date: 2026-06-16T15:12:51Z

Commit Message

fix(security/medium/): update security js-yaml to v4.2.0 [security] (#126517)

* fix(security/medium/): update security js-yaml to v4.2.0 [security]

| datasource | package | from  | to    |
| ---------- | ------- | ----- | ----- |
| npm        | js-yaml | 4.1.1 | 4.2.0 |


Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>

* chore: update resolutions

---------

Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
Co-authored-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>

Pull Request

PR: #126517 - fix(security/medium/): update security js-yaml to v4.2.0 [security]
Labels: area/frontend, automerge-security-update, severity:MEDIUM

Description:
This PR contains the following updates:

Package Change [Age](https://docs.renovatebot.com/merge-confidence/) [Confidence](https://docs.renovatebot.com/merge-confidence/)
[js-yaml](https://redirect.github.com/nodeca/js-yaml) [4.1.14.2.0](https://renovatebot.com/diffs/npm/js-yaml/4.1.1/4.2.0) ![age](https://developer.mend.io/api/mc/badges/age/npm/js-yaml/4.2.0?slim=true) ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/js-yaml/4.1.1/4...

Analysis

Vulnerability Type: Denial of Service (DoS)
Severity: Medium

Description

This patch updates js-yaml from version 4.1.1 to 4.2.0 to fix a quadratic-complexity Denial of Service (DoS) vulnerability in the handling of merge keys (<<) with repeated aliases. An attacker can craft a YAML document that repetitively uses the same alias multiple times in merge sequences, causing excessive CPU consumption and effectively a DoS during parsing.

Affected Code

js-yaml versions prior to 4.2.0, including 4.1.1, where the merge key handling did not properly limit repeated alias expansions, allowing algorithmic CPU exhaustion.

Proof of Concept

---
foo: &a [x]
bar: &b [y]
baz: &c [z]
combined:
  <<: [*a, *a, *a, *a, *a, *a, *a, *a, *a, *a, *a, *a, *a, *a, *a, *a]

# Parsing this document with js-yaml <=4.1.1 causes excessive CPU usage and high resource consumption due to quadratic expansion of repeated aliases in the merge key.

This issue was automatically created by Vulnerability Spoiler Alert.
Detected at: 2026-06-16T18:01:34.378Z

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions