Feb 21, 2026·4 min read·31 visits
The 'wlc' tool checked if a URL started with '127.0.0.1' to disable SSL. Attackers could register domains like '127.0.0.1.evil.com' to bypass encryption checks and steal API tokens.
A logic flaw in the Weblate command-line client (wlc) allowed attackers to bypass SSL verification by using specially crafted domain names that mimic local IP addresses. This vulnerability, stemming from a naive string prefix check, enables potential Man-in-the-Middle attacks if a developer is tricked into using a malicious configuration.
Developers love shortcuts. We hate setting up valid certificates for local development environments, so tools often contain a "dev mode" logic: if the target is localhost, skip the tedious SSL verification. It sounds reasonable until you realize that computers are pedantic literalists that will do exactly what you tell them, not what you mean.
CVE-2026-22250 is a textbook example of what happens when you treat network security like a string matching problem. It affects wlc, the Weblate command-line client, effectively turning its SSL validation into a polite suggestion rather than a rule. The vulnerability isn't a complex buffer overflow or a heap spray; it's a simple logical fallacy hidden in a few lines of Python that opened the door for Adversary-in-the-Middle (AiTM) attacks against developers.
The root cause here belongs in the Hall of Fame of Python pitfalls. The application needed to determine if a user was connecting to a local instance (e.g., 127.0.0.1) so it could relax security settings. However, the implementation relied on the startswith() string method rather than parsing the network address properly.
> [!NOTE] > In security, partial matches are almost always a vulnerability. "Close enough" counts in horseshoes and hand grenades, not in SSL verification.
The code checked if the URL's network location string began with "127.0.0.1". The problem? DNS doesn't care about your prefixes. The domain 127.0.0.1.attacker-site.com is a perfectly valid public domain that resolves to a remote server, yet it technically starts with the magic string. By confusing a string prefix with a network identity, wlc was tricked into trusting remote, malicious servers as if they were safe, local environments.
Let's look at the smoking gun in wlc/__init__.py. The vulnerable code attempts to parse the URL and check the netloc (network location, which includes domain and port).
# The Vulnerable Logic
LOCALHOST_NETLOC = "127.0.0.1"
@staticmethod
def _should_verify_ssl(path):
url = urlparse(path)
# THE BUG: Naive prefix check
is_localhost = url.netloc.startswith(LOCALHOST_NETLOC)
# If it looks like localhost, disable SSL verification
return url.scheme == "https" and (not is_localhost)If an attacker provides the URL https://127.0.0.1.evil.com/api, url.netloc becomes 127.0.0.1.evil.com. The check startswith("127.0.0.1") returns True. Consequently, _should_verify_ssl returns False. The client proceeds to connect to evil.com without validating the server's certificate, allowing the attacker to present any self-signed garbage certificate they want.
While the CVSS score is low (2.5) because it requires configuration manipulation, the impact on a compromised workflow is total. This isn't a remote exploit you fire blindly; it's a social engineering trap.
The Attack Scenario:
.wlcrc file pointing to https://127.0.0.1.intercept.xyz.wlc push to upload translation keys.wlc client sees the "local" prefix, disables SSL verification, and sends the developer's Weblate API token in plaintext (or over an unverified encrypted tunnel) to the attacker's server.Once the attacker has the API token, they have the same rights as the developer—potentially allowing them to overwrite translations, inject malicious scripts into localized content, or delete projects.
The remediation in version 1.17.0 is a lesson in defensive programming. The patch moves away from string slicing and adopts strict allow-listing. Instead of checking what the URL looks like, it checks exactly what it is.
# The Fixed Logic
# Explicit set of allowed local addresses
LOCALHOST_ADDRESSES = {"127.0.0.1", "localhost", "::1", "[::1]"}
@staticmethod
def should_verify_ssl(path: str) -> bool:
url = urlparse(path)
# FIX 1: Use .hostname to ignore ports
# FIX 2: Exact set membership check
return url.hostname not in LOCALHOST_ADDRESSESBy using url.hostname (which strips the port) and checking for membership in a strictly defined set (in LOCALHOST_ADDRESSES), the ambiguity is eliminated. 127.0.0.1.evil.com is simply not in the set, so SSL verification remains enforced.
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
wlc Weblate | < 1.17.0 | 1.17.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-295 (Improper Certificate Validation) |
| CVSS v3.1 | 2.5 (Low) |
| Attack Vector | Local / Config Manipulation |
| Impact | Confidentiality (API Token Leak) |
| Exploit Status | None (No public PoC) |
| Patch Date | 2026-01-12 |
The software does not validate, or incorrectly validates, a certificate.
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.
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.
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.
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.
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.
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.