js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources — GHSA-R3PH-W7GJ-G6XM
GitHub · GitHub · GHSA-R3PH-W7GJ-G6XM
ID
GHSA-R3PH-W7GJ-G6XM
GHSA-R3PH-W7GJ-G6XM
Datum
Quelle
GitHub
GitHub
Vendor
GitHub
GitHub
Risiko
mittel
mittel
CVSS
5.3
5.3
Zusammenfassung
## 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 # repeated K times ``` For every target, the loader iterates all `N` elements of `arr`. This results in `O(N * K)` work while `totalMergeKeys`…
Zeitlicher Verlauf
- Von der Quelle veröffentlicht
- 2026-09-29
Risikokontext
- Gemeldeter Schweregrad oder Risikowert: mittel.
- Gemeldeter CVSS-Wert: 5.3 von 10.
- Prüfe die Exponierung für das betroffene Produkt oder die Produktfamilie: npm: js-yaml.
Produkt
npm: js-yaml
Was tun?
Allgemeine, vorsichtige Schritte (bitte prüfe die offizielle Quelle für Details):
- Prüfe Exponierung und plane Maßnahmen nach Risiko und Umfeld.
- Identifiziere betroffene Produktversionen und prüfe, ob du betroffen bist.
- Spiele Hersteller-Updates/Patches ein oder setze empfohlene Mitigations um.
- Lies das offizielle Advisory für betroffene Versionen und konkrete Schritte.
Offizielles Advisory
Nachweise und Herkunft
- Kanonische Advisory-ID
- GHSA-R3PH-W7GJ-G6XM
- Quelle
- GitHub
- Vendor
- GitHub
- Von der Quelle veröffentlicht
- 2026-09-29
- Letzte Quellenaktivität
- 2026-09-29
- Kuratiert von
- hlukh.ch
Verwandte Hinweise und Zusammenhänge
Diese Hinweise sind anhand gemeinsamer CVE-, Produkt-, Hersteller-, Quellen- oder Zeitsignale verknüpft.