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

Confused Deputy in the Chatroom: Dissecting CVE-2026-22892

Amit Schendel
Amit Schendel
Senior Security Researcher

Feb 14, 2026·6 min read·53 visits

Executive Summary (TL;DR)

The Mattermost Jira Plugin failed to verify user permissions when creating Jira issues from Mattermost posts. An attacker with a valid Post ID can force the plugin to retrieve and display content from private channels they cannot access. Fixed in version 11.3.0 and patch releases.

Mattermost is the fortress of secure collaboration, and Jira is the labyrinth of project management. When you bridge the two, you expect a secure tunnel, not a porous sieve. CVE-2026-22892 is a classic authorization bypass within the Mattermost Jira Plugin that allows users to peek into channels they don't belong to. By exploiting a missing permission check in the issue creation workflow, an authenticated user can retrieve post content and attachments from private channels—provided they can guess or acquire the target Post ID. It's a textbook case of the 'Confused Deputy' problem, where a privileged plugin unwittingly does the dirty work for an unprivileged user.

The Hook: When ChatOps Goes Rogue

We all love ChatOps. The idea that you can create a Jira ticket directly from a Mattermost rant is the peak of developer efficiency. You see a bug reported in the #ops-nightmare channel, you click a button, and boom—it's in the backlog. It’s seamless. It’s productive. And apparently, it was a little too open.

Enter the Mattermost Jira Plugin. Like most plugins in the Mattermost ecosystem, it acts as a bridge between the chat server and external services. To do its job, the plugin needs to read messages, grab attachments, and format them for Jira. The problem arises when the plugin forgets who it's working for. It runs with system-level privileges to fetch data, but it interacts with users who definitely do not have system-level privileges.

CVE-2026-22892 is the story of what happens when that bridge assumes that just because you asked to cross, you're allowed to cross. It’s a classic failure to validate the authorization context, turning a productivity feature into a potential peep-hole for internal snoops.

The Flaw: The Confused Deputy

The vulnerability lies in the /create-issue API endpoint. When a user decides to turn a message into a Jira issue, the frontend sends a request to the plugin backend containing the post_id of the message. The plugin's job is to fetch that message, extract the text and any file attachments, and present a modal to the user so they can finalize the Jira ticket.

Here is where the logic went off the rails. The plugin utilized its own elevated service privileges to query the Mattermost database for the post_id. The database, recognizing the plugin as a trusted entity, happily handed over the data—regardless of whether the post was in a public channel, a private group, or a direct message between the CEO and the Lawyer.

The plugin then took this sensitive data and returned it to the requesting user's browser to populate the 'Create Issue' form. The missing step? Checking if the requesting user actually had read access to the channel where post_id lived. The plugin acted as a 'Confused Deputy'—a privileged entity tricked into misusing its authority to serve an unauthorized request.

The Code: Missing the Guardrails

Let's look at the logic flow. In the vulnerable version, the handler for creating an issue looked something like this (simplified for dramatic effect):

// VULNERABLE LOGIC
func (p *Plugin) handleCreateIssue(w http.ResponseWriter, r *http.Request) {
    // 1. Get the target Post ID from the request
    postID := r.URL.Query().Get("post_id")
    
    // 2. Fetch the post using the Plugin's API interface
    // Note: This often bypasses user-level checks if not scoped correctly
    post, err := p.API.GetPost(postID)
    if err != nil {
        http.Error(w, "Post not found", 404)
        return
    }
 
    // 3. Return the post content to the user so they can edit the Jira ticket
    // OOPS: We never checked if 'r.Header.Get("Mattermost-User-ID")' is allowed to see 'post'
    json.NewEncoder(w).Encode(post)
}

The fix, applied in commit 99ffe20, introduces a mandatory permission check before returning any data. It explicitly verifies that the user making the request has ReadChannel permissions for the channel the post resides in.

// PATCHED LOGIC
func (p *Plugin) handleCreateIssue(w http.ResponseWriter, r *http.Request) {
    postID := r.URL.Query().Get("post_id")
    userID := r.Header.Get("Mattermost-User-ID") // The actual human
 
    // 1. Fetch the post
    post, err := p.API.GetPost(postID)
    if err != nil { ... }
 
    // 2. THE FIX: Check permissions explicitly
    // Does 'userID' have permission to read 'post.ChannelId'?
    if !p.API.HasPermissionToChannel(userID, post.ChannelId, model.PERMISSION_READ_CHANNEL) {
        http.Error(w, "Forbidden: You cannot access this post", 403)
        return
    }
 
    // 3. Proceed only if authorized
    json.NewEncoder(w).Encode(post)
}

It’s a subtle change—just a few lines of code—but it marks the difference between a secure application and a data leak.

The Exploit: Guessing Games

Exploiting this isn't as simple as incrementing an ID counter (thankfully, Mattermost uses 26-character alphanumeric KSUID-style IDs, not integers). You can't just loop from id=1 to id=1000. However, 'Security by Obscurity' is not a valid defense.

The Attack Scenario:

  1. The Leaked Link: Imagine a scenario where a link to a sensitive post in a private channel was shared in a public channel by mistake. The link contains the post_id. Even if the admin kicks the unauthorized users from the private channel, that post_id is now known.
  2. The Request: The attacker, authenticated but unauthorized for the target channel, constructs a raw HTTP request to the plugin endpoint:
    POST /plugins/jira/api/v2/create-issue?post_id=THE_SECRET_POST_ID HTTP/1.1
    Host: mattermost.corp.local
    Cookie: MMUSERID=attacker_session
  3. The Response: The server replies with JSON containing the message text ("Simpsons, we need to talk about the layoffs...") and links to file attachments.

While the CVSS score is a modest 4.3 due to the difficulty of obtaining that ID, the impact if an ID is known is total confidentiality loss for that specific message. This is particularly dangerous for 'Insider Threat' scenarios where a user might have retained IDs from a channel they were recently removed from.

The Impact: Small Leak, Big Problems

Why does a 4.3 Medium severity matter? Because context is king. In corporate environments, Mattermost is often the repository of the most sensitive, ephemeral data: credentials pasted in haste, HR discussions about terminations, or legal strategies.

If an attacker (perhaps a disgruntled employee) has access to a log file, a screenshot, or a browser history that reveals the post_id of a sensitive discussion, this vulnerability allows them to bypass the channel membership restrictions entirely. They don't need to be in the room to hear the conversation; they just need to know the room number.

Furthermore, this bypasses the fundamental promise of 'Private' channels. It erodes trust in the platform. If a user is removed from a channel, they expect their access to cease immediately. This vulnerability allowed a 'zombie' access pattern where knowledge of the metadata (the ID) granted access to the data.

Official Patches

MattermostPull Request #1236 fixing the authorization flaw

Fix Analysis (1)

Technical Appendix

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

Affected Systems

Mattermost Server (Jira Plugin) 10.11.x < 10.11.10Mattermost Server (Jira Plugin) 11.1.x < 11.1.3Mattermost Server (Jira Plugin) 11.2.x < 11.2.2Mattermost Server (Jira Plugin) < 11.3.0

Affected Versions Detail

Product
Affected Versions
Fixed Version
Mattermost Jira Plugin
Mattermost
10.11.0 - 10.11.910.11.10
Mattermost Jira Plugin
Mattermost
11.1.0 - 11.1.211.1.3
Mattermost Jira Plugin
Mattermost
< 11.3.011.3.0
AttributeDetail
CWECWE-863 (Incorrect Authorization)
CVSS v3.14.3 (Medium)
Attack VectorNetwork (Authenticated)
Privileges RequiredLow (User)
EPSS Score0.01% (Low)
Exploit StatusNone (No Public Exploit)

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
T1213Data from Information Repositories
Collection
CWE-863
Incorrect Authorization

The software does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.

Known Exploits & Detection

Manual AnalysisManual reconstruction of the exploit flow based on patch diffs.

Vulnerability Timeline

CVE Published
2026-02-13
Patch Committed (PR #1236)
2026-02-05
Advisory MMSA-2025-00550 Released
2026-02-13

References & Sources

  • [1]Mattermost Security Updates
  • [2]NVD CVE-2026-22892

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
•1 day 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
•1 day 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
15 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