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

CVE-2026-53609: Server-Side Prototype Pollution in ApostropheCMS

Alon Barad
Alon Barad
Software Engineer

Aug 1, 2026·6 min read·19 visits

Executive Summary (TL;DR)

Server-side prototype pollution in ApostropheCMS <= 4.30.0 allows authenticated editors to inject properties into Object.prototype, enabling full process-wide REST API authorization bypass.

A critical server-side prototype pollution vulnerability in ApostropheCMS versions up to and including 4.30.0 allows authenticated editors to write arbitrary properties to the global Object.prototype via patch operators. Exploiting a confirmed gadget in publicApiCheck() bypasses authorization on all piece-type REST API endpoints framework-wide, persisting for the lifetime of the Node.js process.

Vulnerability Overview

ApostropheCMS is an open-source content management system built on Node.js. It implements a document structure using MongoDB, serving content through various piece-types and page-types. Within this architecture, administrative operations are performed via a modular REST API. This API accepts structured payload operations to modify and update documents in the database.\n\nThe attack surface is exposed through endpoint handlers that process PATCH requests on piece-type endpoints. Authenticated editors can submit patch documents containing specific operators such as '$pullAll'. These incoming operations are resolved using internal utilities designed to traverse and manipulate nested JavaScript objects dynamically.\n\nThe core of the vulnerability is located in the utility module '@apostrophecms/util'. Specifically, the path resolution implementation in 'apos.util.set()' fails to validate property keys during traversal. This allows the manipulation of the base prototype object of the JavaScript environment, leading to a server-side prototype pollution vulnerability classified under CWE-1321.

Root Cause Analysis

The root cause lies in the path traversal logic of the helper utility 'apos.util.set()'. This utility takes a target object, a dot-notation string representation of a path, and a value to set. For instance, the path 'attributes.title' resolves to 'object.attributes.title'. The utility processes this path by splitting the dot-notation string by the period character and iterating over the resulting keys recursively or through a loop.\n\nDuring this loop, the application does not inspect the keys to determine if they contain reserved property names such as 'proto', 'constructor', or 'prototype'. If an input payload contains one of these keys, the traversal logic walks straight into the prototype chain of the runtime. When a write operation is performed on the resolved path, the engine modifies the shared 'Object.prototype' directly instead of restricting changes to the local target object.\n\nThis behavior is especially critical due to the presence of an authorization gadget in the 'publicApiCheck()' function. This function determines whether a piece-type API endpoint is publicly accessible by evaluating 'publicApiProjection'. If this property evaluates to a truthy value, the endpoint bypasses standard authentication checks. Because every object inherits from 'Object.prototype', polluting the global prototype with a truthy 'publicApiProjection' value causes every module instance to return this truthy value, bypassing authorization framework-wide.

Code Analysis

The vulnerable implementation in 'packages/apostrophe/modules/@apostrophecms/util/index.js' splits the path and traverses the segments without any checks:\n\njavascript\n// Vulnerable code structure in apos.util.set()\npath = path.split('.');\nfor (i = 0; (i < (path.length - 1)); i++) {\n p = path[i];\n o = o[p]; // No validation on key p\n}\n\n\nThe fix introduces a blocklist using a 'Set' of prohibited keys and verifies each path segment prior to traversal. Below is the patched version of the code containing explicit validation controls:\n\njavascript\n// Patched implementation\nconst unsafePathSegments = new Set([ '__proto__', 'constructor', 'prototype' ]);\n\n// Within apos.util.set()\npath = path.split('.');\nfor (p of path) {\n if (unsafePathSegments.has(p)) {\n // Refuse to write through the prototype chain (CWE-1321)\n throw self.apos.error('invalid', `Unsafe property name "${p}" in dot path`);\n }\n}\n\n\nThe remediation successfully halts any walk operation containing forbidden segments. The validation block inside 'apos.util.get()' operates similarly by returning 'undefined' if an unsafe segment is encountered, preventing read leaks through the prototype chain. Below is a structural flow diagram of the validation logic.\n\nmermaid\ngraph LR\n InputPath["Incoming Path String"] --> SplitPath["Split by '.'"]\n SplitPath --> LoopSegments["Loop through Segments"]\n LoopSegments --> CheckUnsafe{"Is Segment Unsafe?"}\n CheckUnsafe -- "Yes" --> Reject["Throw 'invalid' Error / Abort"]\n CheckUnsafe -- "No" --> Traverse["Access Nested Object Segment"]\n

Exploitation Methodology

Exploitation of this vulnerability requires an authenticated session with at least Editor privileges. While editors are restricted to modifying specific documents, the exploit leverages the PATCH REST API endpoint to escape these data-level limitations. An attacker executes a PATCH request containing a payload constructed to target the prototype property.\n\nThere are two main attack vectors to achieve prototype pollution in this environment. The first vector leverages the '$pullAll' patch operator, where the target key is specified using dot-notation containing 'proto'. The second vector uses a direct dot-notation key nested within the root of the patch payload itself.\n\nOnce the REST API handler executes the patch, 'apos.util.set()' is called on the object path. The global 'Object.prototype' is modified, creating a persistent key named 'publicApiProjection' with a truthy value. Any subsequent HTTP requests to private piece-type endpoints bypass the validation checks. This authorization bypass persists for the entire lifetime of the Node.js process without requiring any further authentication.

Impact Assessment

The CVSS v3.1 score of 9.1 reflects the scope transition and high confidentiality impact. Because the vulnerability mutates the global 'Object.prototype', the scope changes from the local database document to the entire runtime environment of the Node.js process. Consequently, this state change affects components completely unrelated to the initial endpoint used to trigger the payload.\n\nThe immediate consequence of polluting 'publicApiProjection' is the total exposure of all piece-type REST API endpoints. Unauthenticated remote users can perform read, write, update, and delete operations on arbitrary CMS documents, including user accounts, configurations, and private assets. This results in complete loss of data confidentiality and integrity across the application instance.\n\nIn addition to the confirmed authorization bypass gadget, prototype pollution vulnerabilities in Node.js applications frequently act as stepping stones to remote code execution (RCE). If the application or any of its dependency modules dynamically execute functions or shell commands using properties read from objects, an attacker can leverage the polluted prototype to inject malicious arguments or command strings, leading to full host compromise.

Remediation & Mitigation

The primary remediation strategy is the immediate upgrade of ApostropheCMS packages to a version containing the official fix. The patch introduced in commit '5a88e9630cbbdde33154ef8abe7557ddf7be418b' successfully addresses both the read and write paths in the utility module. This completely mitigates the risk of prototype modification through user-controlled dot-notation fields.\n\nFor environments where patching cannot be deployed immediately, temporary mitigations can be implemented at the network or middleware layer. Web application firewalls (WAF) should be configured to inspect incoming JSON bodies of PATCH requests targeting '/api/v1/' routes. Requests containing keys with 'proto', 'constructor', or 'prototype' should be blocked at the gateway.\n\nIf an application is suspected of being compromised or polluted, a restart of the Node.js process is strictly required. Because prototype pollution directly alters memory-resident objects, the system remains in a compromised state until the process is fully terminated and reinitialized. Implement automated health monitoring or process management scripts to cycle application containers if an anomaly is detected.

Official Patches

ApostropheCMSPull Request #5464: Fix server-side prototype pollution in apos.util.set and apos.util.get

Fix Analysis (1)

Technical Appendix

CVSS Score
9.1/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L
EPSS Probability
0.24%
Top 85% most exploited

Affected Systems

ApostropheCMS

Affected Versions Detail

Product
Affected Versions
Fixed Version
apostrophe
apostrophecms
<= 4.30.0> 4.30.0
AttributeDetail
CWE IDCWE-1321
Attack VectorNetwork (AV:N)
CVSS v3.1 Score9.1 (Critical)
EPSS Score0.00237 (Percentile: 14.86%)
ImpactAuthentication and Authorization Bypass
Exploit StatusPoC Available
KEV StatusNot listed

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
CWE-1321
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Known Exploits & Detection

GitHub Security AdvisoryExploit methodology and regression test verification showcasing prototype pollution of publicApiProjection

Vulnerability Timeline

Vulnerability patch developed and commit 5a88e9630cbbdde33154ef8abe7557ddf7be418b pushed
2026-06-10
Security Advisory GHSA-6h5j-32cf-4253 and CVE-2026-53609 officially published
2026-06-12

References & Sources

  • [1]GHSA-6h5j-32cf-4253: Server-Side Prototype Pollution in apos.util.set
  • [2]NVD - CVE-2026-53609

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

•37 minutes 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
1 views•11 min read
•about 2 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 3 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 4 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
•about 5 hours ago•CVE-2026-128077
6.5

CVE-2026-128077: Authorization Bypass via Request Path Desynchronization in Nuxt and @nuxt/nitro-server

CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 6 hours ago•CVE-2026-128084
4.8

CVE-2026-128084: Integer Truncation and SQL Query Truncation in sqlite3-ruby

Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.

Alon Barad
Alon Barad
5 views•11 min read