SiYuan versions <= 3.8.1 (fixed in v3.8.2) contain an incomplete blocklist in the IsForbiddenAbsPath() function (kernel/util/path_guard.go), which only blocks conf/conf.json by exact match and does not restrict the TLS private key (conf/key.pem) or CA private key (conf/ca.key) stored in the same conf/ directory. Because the getFile handler skips the blocklist for RoleAdministrator and all authenticated users receive RoleAdministrator in v3.8.1, any user (or any client on a default no-auth-code instance) can retrieve these private keys via POST /api/file/getFile. On deployments with TLS enabled, this allows decryption of captured HTTPS traffic (key.pem) and forging of certificates trusted by clients that imported SiYuan's CA (ca.key).
### Summary
httpcore2 does not start TLS for `wss://` connections routed through a SOCKS5 proxy. The WebSocket opening handshake and all subsequent frames are sent in plaintext through the proxy path, despite the caller selecting the secure `wss` scheme.
The transport flaw affects httpcore2 releases before `2.10.0`. HTTPX2 exposed this behavior through its public `Client.websocket()` and `AsyncClient.websocket()` APIs from `2.6.0` through `2.9.1`.
### Details
The synchronous and asynchronous SOCKS5 connection implementations upgrade the established proxy tunnel to TLS only when the remote origin scheme is `https`. The equivalent check does not include `wss`. After the SOCKS5 handshake succeeds, the raw stream is therefore passed directly to the HTTP/1.1 connection, which writes the WebSocket upgrade request without first performing a TLS handshake or verifying the destination certificate.
For example, an application using HTTPX2 `2.6.0` through `2.9.1` may open an authenticated WebSocket through a SOCKS proxy:
```python
import httpx2
with httpx2.Client(proxy="socks5://proxy.example:1080") as client:
with client.websocket(
"wss://service.example/private?token=query-secret",
headers={"Authorization": "Bearer header-secret"},
cookies={"session": "cookie-secret"},
) as websocket:
websocket.send_text("private message")
```
On affected versions, the stream passing through the SOCKS proxy begins with a plaintext request such as:
```text
GET /private?token=query-secret HTTP/1.1
Host: service.example
Authorization: Bearer header-secret
Cookie: session=cookie-secret
```
Before HTTPX2 `2.6.0`, the same underlying httpcore2 behavior could be reached by integrations constructing a WebSocket upgrade request through the low-level transport API, but HTTPX2 did not yet provide its native WebSocket client API.
A normal secure WebSocket server will usually reject these plaintext bytes because it expects a TLS ClientHello. However, a malicious or compromised SOCKS proxy can accept the SOCKS connection, observe the plaintext handshake, return a forged `101 Switching Protocols` response, and then read or modify WebSocket frames in both directions. An observer between the proxy and destination may also read the plaintext traffic.
RFC 6455 requires a client using a secure WebSocket connection to perform the TLS handshake before sending the WebSocket opening handshake. A `wss` URI promises confidentiality, integrity, and endpoint authentication through TLS.
### Impact
An attacker able to control or observe the SOCKS proxy path can obtain URL query parameters, authorization headers, cookies, and application messages that the caller expected TLS to protect. Because no TLS handshake occurs, certificate verification also does not occur, allowing an attacker controlling the proxy to impersonate the WebSocket server and inject or alter messages.
Only `wss://` connections routed through a SOCKS5 proxy are affected. Direct `wss://` connections and ordinary `https://` requests through SOCKS already start TLS correctly.
### Mitigation
Upgrade HTTPX2 and httpcore2 to `2.10.0` or later. Patched versions start TLS for both `https` and `wss` origins in the synchronous and asynchronous SOCKS5 connection paths.
If upgrading is not immediately possible, do not route `wss://` connections through a SOCKS proxy. Use a direct secure WebSocket connection or another transport that performs and verifies TLS to the WebSocket origin.
### Summary
HTTPX2 serializes the per-file `Content-Type` and custom headers supplied through the `files=` tuple API directly into the `multipart/form-data` body without validating custom header names or values. An attacker who can influence upload metadata passed to HTTPX2 can use CR or LF characters to terminate a multipart part header and inject additional part headers or end the part header block early.
### Details
The three-element file tuple accepts `(filename, content, content_type)`, and the four-element form accepts `(filename, content, content_type, headers)`. `FileField.render_headers()` interpolates the supplied header names and values between CRLF delimiters without validating them.
For example:
```python
import httpx2
request = httpx2.Request(
"POST",
"https://example.com/upload",
headers={"Content-Type": "multipart/form-data; boundary=BOUNDARY"},
files={
"file": (
"safe.txt",
b"payload",
"text/plain\r\nX-Injected: true",
)
},
)
print(request.read().decode())
```
The generated body contains an attacker-injected part header:
```text
--BOUNDARY
Content-Disposition: form-data; name="file"; filename="safe.txt"
Content-Type: text/plain
X-Injected: true
payload
--BOUNDARY--
```
The same issue affects names and values in the custom header mapping from the four-element tuple.
Field names and filenames are serialized through a separate escaping path and do not permit CRLF header injection.
### Impact
Applications are affected when they pass attacker-controlled upload metadata into the per-file `content_type` or custom `headers` arguments. The receiving server interprets injected lines as genuine multipart part headers. Depending on how that server validates and processes uploads, this can alter part semantics or bypass checks based on part headers.
This does not split the outer HTTP request: the injected headers are contained within the multipart body. The concrete security impact therefore depends on the downstream multipart parser and application behavior.
### Mitigation
Upgrade to HTTPX2 `2.11.0` or later. Patched versions reject forbidden control characters in multipart part header names and values and raise `ValueError` before serializing the request.
If upgrading is not immediately possible, applications should validate custom multipart header names as HTTP field-name tokens. They should reject NUL, CR, LF, other C0 controls except horizontal tab, and DEL in per-file content types and custom header values before passing them to HTTPX2.
The npm package 'order-package-saas' versions 999.0.0 and 999.0.1 contains malicious code that executes during the postinstall hook. This code collects sensitive secrets and credentials from various common configuration files and environment variables, including private keys, cloud credentials, tokens, and API keys. It then encodes this information and exfiltrates it over HTTPS to a Telegram bot endpoint and over HTTP to an IP address. The malicious behavior includes evasion techniques such as delaying execution and skipping execution in test or CI environments. This package is identified as a dependency-confusion lure targeting internal packages.
JSCeal is a sophisticated cryptocurrency stealer malware delivered as compiled V8 bytecode with multiple layers of JavaScript obfuscation. It can perform keylogging, steal browser credentials, collect cryptocurrency, intercept HTTPS traffic via a local man-in-the-middle proxy, and replay stolen session cookies. Recent variants target macOS, use newer V8 versions, and add AES-256-CBC encryption layers, indicating ongoing active development.
JSCeal is a sophisticated cryptocurrency-focused stealer malware delivered as compiled V8 bytecode executed by a bundled Node.js runtime. It employs multiple layers of JavaScript obfuscation and encryption, including RC4 and AES-256-CBC, to protect its payload. The malware's capabilities include keylogging, browser credential theft, cryptocurrency collection, HTTPS traffic interception via a local man-in-the-middle proxy, and session replay using stolen cookies. Recent variants target macOS and newer V8 versions, showing active development. Check Point Research developed a fully static deobfuscation pipeline to analyze JSCeal without executing it, enabling detailed understanding of its behavior. The toolkit is publicly available and supports analysis of multiple samples.
CVE-2026-41012 is a vulnerability in the Cloud Foundry bosh-vsphere-cpi-release component that allows an attacker intercepting traffic between BOSH Director and vCenter to impersonate the vCenter REST API. This impersonation enables the attacker to capture administrator credentials transmitted via HTTP Basic authentication, leading to full control over the virtualization infrastructure managed by vCenter. The root cause is improper certificate validation, allowing successful man-in-the-middle attacks despite HTTPS usage. This affects all CPI calls and cannot be mitigated by supplying a CA certificate alone.
The npm package 'confluence-create-content' version 30.0.0 contains malicious code due to a dependency confusion attack. Its package.json declares a dependency on itself using a bare HTTPS URL instead of a version range, causing npm install to fetch and execute code from a third-party host without integrity checks. The shipped index.js is inert, but the external dependency URL delivers the malicious payload. Any system with this package installed is considered fully compromised, requiring immediate secret and key rotation and package removal.
The confluence-editor npm package version 30.0.0 contains a malicious dependency declared as a bare HTTPS URL pointing to an external repository. This setup allows arbitrary code execution during installation because npm fetches and runs lifecycle scripts from an untrusted source without version pinning or integrity checks. The package's shipped code is inert, but the actual malicious code is served dynamically from the external host, which can be changed at any time by the attacker. Any system with this package installed should be considered fully compromised.
The npm package 'prm-bundles' version 45.0.0 contains malicious code delivered via a self-referential dependency that points to a remote HTTPS URL instead of a versioned registry package. Installing this package causes npm to fetch and execute arbitrary code from an external source without integrity checks, effectively compromising the host system. Removal of the package does not guarantee full remediation due to potential persistent control by the attacker.
The npm package 'ir-annuities-client-authentication-module' version 30.0.0 contains malicious code delivered via a dependency confusion attack. The package.json declares a dependency with the same name as the package itself, pointing to a non-registry HTTPS URL, causing npm to fetch and execute potentially malicious code during installation. The shipped index.js is inert, but the manifest triggers the download and execution of external code without integrity checks. Any system with this package installed should be considered fully compromised, and all secrets and keys on that system should be rotated immediately.
The npm package 'ux-metrics-client-interaction-subscriber' version 45.0.0 contains malicious code delivered via a self-referential dependency pointing to an external non-registry URL. Installing this package results in arbitrary code execution on the installer's machine due to unverified code fetched from https://repo.securityctrl.com. The package's index.js is inert, making the manifest the primary attack vector. Any system with this package installed should be considered fully compromised, and all secrets and keys on that system must be rotated from a separate, secure machine.
The npm package 'bui-react-10themes' version 45.0.0 contains malicious code. It declares a dependency on itself using a bare HTTPS URL instead of a version range, causing npm to fetch and install code from an untrusted external source. The installed package acts as a stub but executes lifecycle scripts from the external source, potentially compromising the host system. Any system with this package installed should be considered fully compromised, and secrets should be rotated immediately.
The npm package 'jira-projects-backbone' version 45.0.0 contains malicious code delivered via a dependency declared as a bare HTTPS URL pointing to an attacker-controlled repository. The package itself is an inert stub, but the install process fetches and executes code from the external URL without version pinning or integrity checks, leading to full compromise of any system installing it. Removal of the package does not guarantee eradication of the malicious code or its effects.
The npm package 'data-value' version 45.0.0 includes a malicious dependency configuration that points to an arbitrary HTTPS URL outside the official npm registry. This setup causes npm to fetch and execute code from an untrusted source during installation without version pinning or integrity checks. The package's shipped code is inert, but the dependency declaration enables remote code execution at install time by whoever controls the external URL. Systems with this package installed should be considered fully compromised, and all secrets and keys should be rotated from a secure environment.
The npm package 'oit-lib-oracle-util' version 45.0.0 contains malicious code delivered via a dependency confusion technique. The package.json declares a dependency using a bare HTTPS URL pointing to an untrusted external source, which is fetched and installed during npm install, potentially executing malicious lifecycle scripts. The package's index.js is inert, indicating the manifest itself is the delivery mechanism. Any system with this package installed should be considered fully compromised, and all secrets and keys on that system should be rotated immediately. Removal of the package does not guarantee full remediation due to potential persistent compromise.
The npm package 'gridster-coords' version 45.0.0 is identified as malicious. It declares its own dependency as a bare HTTPS URL pointing to an untrusted external repository, which allows arbitrary code execution during installation. The package itself is a stub, but the installation process can execute lifecycle scripts from the external source, potentially compromising the host system. Any system with this package installed should be considered fully compromised, and all secrets and keys on that system must be rotated immediately. Removal of the package does not guarantee full remediation due to potential persistent malicious control.
The npm package amplitude-react-native version 45.0.0 contains malicious code due to a dependency-confusion issue. Its package.json declares a dependency from an untrusted HTTPS URL without version pinning or integrity verification, allowing an attacker controlling that URL to execute arbitrary code during installation. The installed package's index.js is inert, but the manifest triggers execution of potentially malicious lifecycle scripts. Any system with this package installed should be considered fully compromised, and all secrets and keys on that system must be rotated from a different machine.
The framework-zero npm package version 45.0.0 contains malicious code delivered via a dependency-confusion technique. The package.json declares a dependency using a bare HTTPS URL from an untrusted external source, allowing arbitrary code execution during installation. Systems with this package installed should be considered fully compromised, and all secrets and keys must be rotated immediately. Removal of the package does not guarantee full remediation due to potential persistent malicious activity.
The katal-logger npm package version 45.0.0 declares a dependency as a bare HTTPS URL pointing to an external, non-npm registry host. This allows arbitrary code from that URL to be fetched and executed during installation without version pinning or integrity checks. The package itself contains an inert stub, but the dependency declaration enables remote code execution. Any system with this package installed should be considered fully compromised, requiring immediate secret and key rotation and package removal.