Intel

AIKIDO-2026-10135

@notionhq/client is vulnerable to Directory Traversal

Directory Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 9, 2026

70

High Risk

This Affects:

JS@notionhq/client
3.1.0 - 5.8.0
Fixed in 5.9.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package fail to properly validate path parameters (such as block_id, page_id, or database_id), allowing path traversal sequences like .. and URL-encoded variants (%2e%2e, mixed-case, or fully encoded paths) to be processed, which could alter the resolved API endpoint. An attacker could exploit this vulnerability by crafting malicious requests with encoded traversal payloads in path parameters to access unintended routes, bypass authorization checks, or interact with internal endpoints that should not be exposed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@notionhq/client is vulnerable to Directory Traversal in versions 3.1.0 - 5.8.0.

How to fix this

Upgrade the @notionhq/client library to the patch version.