CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-84469

CVE-2026-84469: Request Validation Bypass in Fastify via Loose Boolean Schema Evaluation

Alon Barad
Alon Barad
Software Engineer

Oct 1, 2026·7 min read·25 visits

Executive Summary (TL;DR)

Fastify fails to compile validation schemas configured as boolean 'false', causing 'deny-all' schemas to be completely ignored. Unauthenticated remote attackers can bypass payload validation and execute backend route handlers.

CVE-2026-84469 is a high-severity request validation bypass vulnerability in the Fastify Node.js web framework. In versions prior to 5.12.2, Fastify uses loose truthiness checks to decide whether to compile request schemas. When a component (such as the body) is explicitly configured with a boolean 'false' schema—which under JSON Schema Draft 7 acts as a 'deny-all' constraint—Fastify's internal logic evaluates this as a falsy value and skips compilation entirely. This allows unauthenticated remote attackers to send arbitrary payloads to these endpoints, bypassing validation checks and directly executing backend route handlers.

Vulnerability Overview

Fastify is a widely adopted, high-performance web framework for the Node.js ecosystem. It relies heavily on schema-based compilation to perform high-speed input validation and serialization. In Fastify, route definitions can incorporate explicit JSON Schemas to validate components of incoming HTTP requests, such as headers, query parameters, route parameters, and the body. These validation layers act as a primary security boundary, protecting the underlying handler logic from malformed or unexpected data structures.

Under the JSON Schema Draft 7 specification, a schema can be declared as a boolean value. While a schema of true allows any input, a schema of false acts as a strict "deny-all" constraint. Developers frequently employ false schemas to secure endpoints, ensuring that specific parts of a request, such as query parameters or POST request bodies, are completely disabled and rejected.

This vulnerability, cataloged as CVE-2026-84469, is a high-severity request validation bypass. It occurs because the framework evaluates schema definitions using loose JavaScript truthiness checks. Because the boolean false is falsy in JavaScript, Fastify treats an explicitly defined false schema as missing or omitted. Consequently, the compiler fails to register the validation logic, and the framework executes the target route handler with unvalidated client input.

Root Cause Analysis

The root cause of CVE-2026-84469 lies in how Fastify's internal initialization engine detects the presence of schema definitions within lib/route.js, lib/schemas.js, and lib/validation.js. During the registration phase of an HTTP route, Fastify constructs its validation architecture by checking for defined properties on the route configuration's schema object.

In vulnerable versions of Fastify, the framework used implicit JavaScript truthiness operators (such as opts.schema.body || opts.schema.headers or if (schema.body)) to establish whether a specific schema compiled. In JavaScript, several values are treated as "falsy", including false, 0, "", null, undefined, and NaN. Because the JSON Schema Draft 7 specification defines the literal boolean false as a valid "deny-all" schema, developers setting a schema block to false expected Fastify to compile a validator that rejects all incoming requests.

However, during execution, the falsy nature of false caused Fastify to bypass the initialization of the validation compiler. The conditional statement evaluated the explicitly defined schema as absent. As a result, the framework did not bind any validator to the request handler, allowing the engine to parse arbitrary client-supplied payloads and pass them directly to the backend handler.

Code Analysis

To understand the structural flaw, we can examine the vulnerable implementation in lib/route.js and compare it with the updated logic applied in the official fix.

Prior to the patch, lib/route.js determined if a route required schema compilation using the following validation check:

// Vulnerable pattern in lib/route.js
const hasValidationSchema = opts.schema.body ||
  opts.schema.headers ||
  opts.schema.querystring ||
  opts.schema.params

If a developer configured a route to reject all body content by specifying opts.schema.body = false, and did not specify other schemas, hasValidationSchema evaluated to false. This skipped the invocation of schemaController.setupValidator().

The official patch (7de6e81697778f9f41bd327a3b1c5c9a0d9637b4) resolved this by replacing the logical OR (||) checks with explicit undefined checks.

// Patched pattern in lib/route.js
const hasValidationSchema = opts.schema.body !== undefined ||
  opts.schema.headers !== undefined ||
  opts.schema.querystring !== undefined ||
  opts.schema.params !== undefined

This modification ensures that any value other than undefined—including the boolean false—is treated as a present schema configuration, forcing Fastify to initialize and execute the validation engine.

Exploitation Methodology

Exploitation of this vulnerability requires no specialized tools or prior authentication. It relies entirely on sending well-formed requests to routes that developers configured with boolean false schemas to block input.

Consider an application endpoint designed to trigger an action without receiving external parameters, such as a GET request that uses querystring: false to enforce strict isolation:

fastify.get('/api/trigger', {
  schema: {
    querystring: false
  }
}, async (request, reply) => {
  if (request.query.force === 'true') {
    runPrivilegedTask();
  }
  return { status: "Success" };
});

In a vulnerable Fastify instance, sending a request to /api/trigger?force=true bypasses the query parameter validation. Fastify skips compilation of the query parser's validator, processes the query parameter, populates the request.query object, and runs the handler. The handler executes runPrivilegedTask() because the input is processed without hindrance.

To verify this vulnerability, an attacker can transmit an arbitrary payload to a target route that explicitly restricts that request component. If the server processes the request with an HTTP 200 OK status and executes the corresponding backend code instead of returning an HTTP 400 Bad Request code, the application is confirmed to be vulnerable.

Impact Assessment

The security impact of CVE-2026-84469 is significant for applications that rely on schemas to enforce strict data boundaries or to disable specific operational features. While the vulnerability does not directly lead to remote code execution at the framework layer, it completely removes the input validation layer.

This bypass can lead to downstream vulnerabilities, such as SQL Injection, NoSQL Injection, or Path Traversal, if the target route handlers assume that the incoming input is pre-validated or entirely absent. For example, if a developer configures an endpoint with body: false and executes dangerous commands based on fields within the body (under the assumption that those fields can never reach the handler), an attacker can supply malicious payloads to trigger those operations.

The Common Vulnerability Scoring System (CVSS) v3.1 assigns this flaw a base score of 7.5 (High), reflecting a high integrity impact and low exploitation complexity. Because the attack requires no privileges or user interaction and can be executed remotely over the network, it presents an attractive vector for targeting applications that leverage boolean-based security configurations.

Remediation and Fix Completeness

The primary and recommended mitigation is to update the Fastify dependency to version 5.12.2 or higher. This update alters the validation initialization path to perform strict presence checks rather than loose truthiness checks, ensuring that boolean schemas are correctly compiled and enforced.

If upgrading is not immediately possible, security teams can implement a temporary workaround by replacing all occurrences of false schemas with explicit validation schemas that reject all input. For instance, developers can configure the schema to reject any property by setting additionalProperties to false and requiring an impossible field:

schema: {
  body: {
    type: 'object',
    properties: {
      denyAllField: { type: 'string', minLength: 999999 }
    },
    required: ['denyAllField'],
    additionalProperties: false
  }
}

An alternative workaround is the implementation of application-level hooks. A preValidation hook can be registered globally or on specific routes to inspect incoming payloads and manually reject them with an HTTP 400 response:

fastify.addHook('preValidation', async (request, reply) => {
  if (request.body !== undefined && request.body !== null) {
    reply.code(400).send({ error: 'Bad Request', message: 'Payloads are not permitted on this route' });
  }
});

The fix implemented in Fastify version 5.12.2 is structurally complete. By validating the presence of the schema properties using strict inequality operators (!== undefined), it completely covers all boolean values, preventing similar truthiness bypasses.

Official Patches

FastifyOfficial Security Fix Commit
FastifyFastify 5.12.2 Release Tag

Fix Analysis (1)

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS Probability
0.49%
Top 60% most exploited

Affected Systems

Fastify Web Framework

Affected Versions Detail

Product
Affected Versions
Fixed Version
Fastify
Fastify
>= 0.1.0, < 5.12.25.12.2
AttributeDetail
CWE IDCWE-20: Improper Input Validation
Attack VectorNetwork (Remote)
CVSS Score7.5 (High)
EPSS Score0.00492 (Percentile: 39.86%)
ImpactValidation Bypass / Integrity Compromise
Exploit StatusPoC Available
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
CWE-20
Improper Input Validation

The product does not validate or incorrectly validates input that can affect the control flow or data flow of a program.

Vulnerability Timeline

Security patch authored and committed by Fastify core maintainers.
2026-09-03
GitHub Security Advisory GHSA-hwr6-493r-vm6h published and Fastify 5.12.2 released.
2026-09-04
CVE-2026-84469 assigned and published.
2026-09-04
NVD indexes vulnerability and assigns CVSS rating.
2026-09-15

References & Sources

  • [1]Official CVE Record
  • [2]NVD Detail Page
  • [3]GitHub Security Advisory
  • [4]OpenJS Foundation Security Advisories

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•8 minutes ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
0 views•12 min read
•about 1 hour ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
3 views•10 min read
•about 2 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 3 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 4 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 5 hours ago•CVE-2026-126304
8.7

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

Amit Schendel
Amit Schendel
6 views•9 min read