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-25754

AdonisJS BodyParser: When a Form Field Eats the Universe

Alon Barad
Alon Barad
Software Engineer

Feb 8, 2026·6 min read·96 visits

Executive Summary (TL;DR)

The AdonisJS body parser initialized form field storage as a plain object (`{}`). This allowed attackers to inject properties into `Object.prototype` by sending form fields named `__proto__.key`. This pollutes the entire application runtime, affecting every object in the process.

A critical Prototype Pollution vulnerability in the AdonisJS `@adonisjs/bodyparser` package allows unauthenticated attackers to corrupt the global object prototype via crafted multipart form-data requests. By manipulating the `__proto__` property during field accumulation, attackers can trigger Denial of Service, authentication bypasses, or potentially Remote Code Execution depending on the application's gadget chain.

The Hook: The Gateway to the App

Web frameworks have a tough job. They stand as the bouncer at the club door, patting down every request that tries to get in. One of the messiest parts of that job is handling multipart/form-data. It's a protocol designed in a simpler time, used primarily for file uploads but often tasked with carrying complex metadata alongside those files.

AdonisJS, the "Laravel of Node.js," prides itself on being robust and opinionated. But in versions of @adonisjs/bodyparser prior to 10.1.3, the bouncer missed a spot. The component responsible for aggregating those metadata fields had a classic JavaScript blindness: it trusted that a "new object" was actually empty.

This isn't just about reading a bad file; it's about memory corruption in a language that technically doesn't let you touch memory. By slipping a specific key into a form upload, an attacker can modify the DNA of every object in the running application. It's the digital equivalent of sneezing in the salad bar—suddenly, everyone has your cold.

The Flaw: The Curse of Inheritance

To understand this bug, you have to understand the quirk at the heart of JavaScript: the Prototype Chain. When you create a simple object in JS using const obj = {}, it isn't empty. It comes pre-loaded with a hidden link (__proto__) to Object.prototype. This is why you can call .toString() on an empty object and it works—it inherits that method.

The vulnerability lived in the FormFields class. The parser's job is to take a stream of form parts and organize them. If I send a field named username with value admin, the parser adds username: 'admin' to its internal storage.

The fatal flaw was how that storage was initialized:

export class FormFields {
  // The root of all evil
  #fields: any = {}
}

By initializing #fields as {} (a plain object), the developer inadvertently exposed the __proto__ accessor. When the parser logic blindly assigns values based on input keys (#fields[key] = value), an attacker supplying a key like __proto__ isn't setting a property on the #fields object itself—they are traversing the chain and modifying the global Object.prototype. This is Prototype Pollution 101, but seeing it in a major framework's core parsing logic is a stark reminder that const x = {} is rarely safe for user input.

The Code: One Line to Rule Them All

The fix is elegantly simple, yet it highlights exactly why the bug existed. The maintainers didn't need to rewrite the parsing logic or add complex sanitization regexes (which are often bypassed anyway). They just needed to change the nature of the storage container.

Here is the critical diff from commit 40e1c71f958cffb74f6b91bed6630dca979062ed:

--- a/src/form_fields.ts
+++ b/src/form_fields.ts
@@ -17,7 +17,7 @@ export class FormFields {
   /**
    * Internal storage for form fields
    */
-  #fields: any = {}
+  #fields: any = Object.create(null)

> [!NOTE] > Why does this work? > Object.create(null) creates a dictionary object that has no prototype. It doesn't inherit from Object.prototype. It has no __proto__, no constructor, and no toString. If an attacker tries to access __proto__ on this object, the result is undefined, and the assignment simply creates a literal property named "__proto__" on that specific object, rather than traversing up to the global scope.

This is the definitive defense against prototype pollution for key-value stores in JavaScript. If you are storing user input in an object, and you aren't using a Map or Object.create(null), you are likely vulnerable.

The Exploit: Poisoning the Well

Let's construct a Proof of Concept (PoC). We don't need authentication; we just need an endpoint that accepts multipart/form-data. This could be a profile picture upload, a contact form with attachments, or a resume drop.

The goal is to set a property on Object.prototype that the application relies on later. A classic target is isAdmin (for poor authorization checks) or gadgets in other libraries.

Here is how we formulate the request using curl:

curl -X POST http://localhost:3333/upload \
  -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" \
  --data-binary $'------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name="__proto__[polluted]"\r\n\r\ntrue\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--\r\n'

What happens inside the engine:

  1. Parsing: AdonisJS parses the body. It sees a field named __proto__[polluted].
  2. Assignment: The parser effectively executes #fields.__proto__['polluted'] = 'true'.
  3. Pollution: Because #fields was a plain object, __proto__ points to the global Object.prototype.
  4. The Aftermath: Now, every single object in the application has a property polluted set to true.

If the application has code like if (user.isAdmin) { grantAccess() }, and the user object doesn't explicitly define isAdmin, it will look up the prototype chain. If we managed to pollute isAdmin to true, we just bypassed authentication for the entire platform.

The Impact: Denial of Service (and worse)

While "Authentication Bypass" sounds scary, it relies on the application having loose logic. However, Denial of Service (DoS) is almost guaranteed with this vulnerability.

An attacker can overwrite standard methods like toString or valueOf. Imagine if every time the application tried to convert an object to a string (for logging, for database queries, for API responses), it crashed because toString was no longer a function but a string containing "pwned".

// The DoS Payload
name="__proto__[toString]"
value="hacked"

One request with this payload brings the Node.js process to its knees. Since AdonisJS (like most Node apps) is single-threaded (or clustered), crashing the process repeatedly leads to total service unavailability.

Furthermore, if the application uses template engines or other libraries that merge objects deeply, this can lead to Remote Code Execution (RCE). This usually requires a "gadget chain"—code that takes our polluted property and passes it into eval() or child_process.exec(). While not inherent to the bug itself, the potential is always there in a complex dependency tree.

The Fix: Nullify the Prototype

If you are running AdonisJS, check your @adonisjs/bodyparser version immediately. You are vulnerable if you are below 10.1.3 (v10 branch) or 11.0.0-next.9 (v11 branch).

Remediation Steps:

  1. Update Dependencies: Run npm update @adonisjs/bodyparser or npm install @adonisjs/core@latest.
  2. Verify: Check your package-lock.json to ensure the installed version matches the patched release.
  3. WAF Rules: As a defense-in-depth measure, configure your WAF (Web Application Firewall) to block incoming requests containing __proto__, constructor, or prototype in the body content. This catches the low-hanging fruit before it even hits your app logic.

Developers should learn the lesson here: Never trust the default prototype. When building hashmaps or dictionaries in JavaScript that accept user keys, always use new Map() or Object.create(null).

Official Patches

AdonisJSCommit fixing the storage initialization

Fix Analysis (1)

Technical Appendix

CVSS Score
7.2/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
EPSS Probability
0.04%
Top 90% most exploited

Affected Systems

AdonisJS Framework (v10 and v11-next)Node.js applications using @adonisjs/bodyparser

Affected Versions Detail

Product
Affected Versions
Fixed Version
@adonisjs/bodyparser
AdonisJS
< 10.1.310.1.3
@adonisjs/bodyparser
AdonisJS
< 11.0.0-next.911.0.0-next.9
AttributeDetail
CWE IDCWE-1321 (Prototype Pollution)
CVSS v3.17.2 (High)
Attack VectorNetwork (AV:N)
AuthenticationNone (PR:N)
EPSS Score0.00036 (10.29%)
Exploit StatusPoC Available
Patch Commit40e1c71f958cffb74f6b91bed6630dca979062ed

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1499Endpoint Denial of Service
Impact
CWE-1321
Prototype Pollution

The product receives input from an upstream component, but it does not restrict or incorrectly restricts the input from creating, modifying, or modifying the attributes of a prototype of the Base Object.

Known Exploits & Detection

GitHub AdvisoryAdvisory containing PoC logic for multipart form manipulation.

Vulnerability Timeline

Fix committed to adonisjs/bodyparser
2026-02-05
GHSA and CVE Published
2026-02-06

References & Sources

  • [1]GHSA-f5x2-vj4h-vg4c
  • [2]NVD Entry for CVE-2026-25754

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

•2 days ago•CVE-2026-16454
4.3

CVE-2026-16454: Object-Level Authorization Bypass in Eclipse hawkBit Direct Device Integration Controller

CVE-2026-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•CVE-2026-62284
8.6

CVE-2026-62284: Remote Code Execution and SSRF via Unsanitized Kubeconfig in OSAC Operator

CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.

Amit Schendel
Amit Schendel
8 views•8 min read
•2 days ago•CVE-2026-62361
5.5

CVE-2026-62361: Authenticated SQL Injection and Table Access Control Bypass in Listmonk Subscriber Export

CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).

Alon Barad
Alon Barad
9 views•11 min read
•2 days ago•CVE-2026-28385
5.0

CVE-2026-28385: Server-Side Request Forgery in Canonical LXD Image Import

CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.

Amit Schendel
Amit Schendel
10 views•9 min read
•2 days ago•GHSA-9J25-MM2H-2F76
9.9

CVE-2026-48750: Arbitrary File Write on Host via exec-output Symlink in Canonical LXD and Incus

Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.

Alon Barad
Alon Barad
8 views•12 min read
•2 days ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.

Amit Schendel
Amit Schendel
8 views•9 min read