Skip to content

Resolve CVE-2026-33532 by bumping yaml to ^1.10.3#1499

Open
KashKondaka wants to merge 1 commit intoopensearch-project:2.11from
KashKondaka:fix/cve-2026-33532-2.11
Open

Resolve CVE-2026-33532 by bumping yaml to ^1.10.3#1499
KashKondaka wants to merge 1 commit intoopensearch-project:2.11from
KashKondaka:fix/cve-2026-33532-2.11

Conversation

@KashKondaka
Copy link
Copy Markdown
Collaborator

Summary

Resolves CVE-2026-33532 (MEDIUM severity) by adding yaml@^1.10.3 to yarn resolutions in package.json.

Details

Parsing a YAML document with the yaml npm package may throw a RangeError due to a stack overflow. The node resolution/composition phase uses recursive function calls without a depth bound. An attacker who can supply YAML for parsing can trigger a RangeError: Maximum call stack size exceeded with a small payload (~2-10 KB).

The RangeError is not a YAMLParseError, so applications that only catch YAML-specific errors will encounter an unexpected exception type. Depending on the host application's exception handling, this can fail requests or terminate the Node.js process.

Impact

Parsing a YAML document with the yaml npm package may throw a RangeError due to a stack overflow with a small payload (~2-10 KB). Depending on exception handling, this can fail requests or terminate the Node.js process.

Fix

  • Added yaml: ^1.10.3 to yarn resolutions in package.json
  • Version 1.10.3 adds a depth bound to the compose/resolve phase, preventing stack overflow from deeply nested YAML documents

Test Plan

  • Verify yaml resolves to >=1.10.3 after yarn install
  • Verify no regressions in build or tests

Details:
Parsing a YAML document with the yaml npm package may throw a
RangeError due to a stack overflow. The node resolution/composition
phase uses recursive function calls without a depth bound. An attacker
who can supply YAML for parsing can trigger a RangeError: Maximum call
stack size exceeded with a small payload (~2-10 KB). The RangeError is
not a YAMLParseError, so applications that only catch YAML-specific
errors will encounter an unexpected exception type. Depending on the
host application's exception handling, this can fail requests or
terminate the Node.js process. Flow sequences allow deep nesting with
minimal bytes (2 bytes per level). On the default Node.js stack,
approximately 1,000-5,000 levels of nesting (2-10 KB input) exhaust
the call stack.

Impact:
Parsing a YAML document with the yaml npm package may throw a
RangeError due to a stack overflow with a small payload (~2-10 KB).
Depending on exception handling, this can fail requests or terminate
the Node.js process.

Fix:
Added yaml ^1.10.3 to yarn resolutions in package.json. Version 1.10.3
adds a depth bound to the compose/resolve phase, preventing stack
overflow from deeply nested YAML documents.

Signed-off-by: KashKondaka <37753523+KashKondaka@users.noreply.github.com>
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.

1 participant