THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-r3ph-w7gj-g6xm (medium) — js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources

[GHSA] GHSA-r3ph-w7gj-g6xm (medium) — js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources

medgithub_advisoriesPublished 2026-09-29

GHSA-r3ph-w7gj-g6xm Severity: medium CVE: None

js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources

## Summary

`maxTotalMergeKeys` does not count empty mappings. An attacker can repeatedly merge a large sequence of them and consume significant CPU without reaching the configured limit.

## Example

```yaml arr: &arr [{}, {}, {}, ...] # N empty mappings targets: - <<: *arr

Original source: https://github.com/advisories/GHSA-r3ph-w7gj-g6xm