Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114574 Overview
CVE-2026-114574 is an information disclosure vulnerability in massCodeIO massCode version 5.10. The flaw resides in an unknown function within src/main/api/index.ts, part of the Local HTTP Service component. The service binds to localhost in a manner that exposes it to remote interaction, allowing attackers to retrieve information from the local API. The exploit has been disclosed publicly, and a patch is available in commit d25d8fa3f5a1e34285c8634f18729650c0c05cda.
Critical Impact
Remote attackers can trigger the vulnerable code path with user interaction to access data served by massCode's local HTTP API, resulting in information disclosure [CWE-200].
Affected Products
- massCodeIO massCode 5.10
- Component: Local HTTP Service (src/main/api/index.ts)
- Clipper integration (integrations/clipper/src/api.ts)
Discovery Timeline
- 2026-10-22 - CVE CVE-2026-114574 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114574
Vulnerability Analysis
massCode is an open-source snippet manager built on Electron. It runs a local HTTP API that supports clipper integrations and Swagger documentation. The vulnerable version binds this API to the hostname localhost, which can resolve to interfaces beyond the loopback adapter depending on system configuration. This exposure allows a remote actor to interact with endpoints intended for local-only use.
The weakness maps to CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). The attack requires user interaction, and the public disclosure includes an exploit path, raising the likelihood of opportunistic abuse against developer workstations running massCode.
Root Cause
The root cause is the use of the hostname localhost when constructing API URLs. In some configurations, localhost resolves to addresses reachable from the network rather than being strictly limited to 127.0.0.1. The remediation replaces localhost with the explicit loopback IP 127.0.0.1 to prevent accidental exposure of the local API to external interfaces.
Attack Vector
An attacker reaches the vulnerable local HTTP service remotely across the network and triggers a request to the capture or Swagger endpoints. With user interaction on the victim host, the attacker retrieves information exposed by the API. No authentication is required.
// Security patch in integrations/clipper/src/api.ts
// fix(security): harden local API and HTML preview
request: CaptureRequest,
): Promise<CaptureResponse> {
const response = await fetch(
- `http://localhost:${settings.apiPort}/captures/`,
+ `http://127.0.0.1:${settings.apiPort}/captures/`,
{
body: JSON.stringify(request),
headers: {
Source: GitHub Commit d25d8fa3
The patch forces the client to target the loopback IP explicitly. A parallel change in scripts/api-generate.js applies the same substitution for the Swagger JSON endpoint, closing the exposure across both call sites.
Detection Methods for CVE-2026-114574
Indicators of Compromise
- Inbound HTTP connections to the massCode API port (default 4321) originating from non-loopback source addresses.
- Unexpected requests to /captures/ or /swagger/json paths on developer endpoints running massCode.
- Process-level network listeners from the massCode Electron process bound to 0.0.0.0 or an external interface.
Detection Strategies
- Enumerate hosts running massCode 5.10 and verify the listening socket address for the local API using netstat or ss.
- Hunt for HTTP traffic on port 4321 traversing network segments between workstations.
- Correlate browser or external-origin requests to localhost API endpoints with the user context of the Electron process.
Monitoring Recommendations
- Log and alert on outbound and lateral HTTP connections targeting developer workstation ports typically used by local-only services.
- Monitor Electron and Node.js child processes for anomalous listen-address bindings.
- Capture process-to-network telemetry on endpoints where developer tools expose local APIs.
How to Mitigate CVE-2026-114574
Immediate Actions Required
- Upgrade massCode past the fix commit d25d8fa3f5a1e34285c8634f18729650c0c05cda as soon as a patched release is available.
- Audit developer endpoints for massCode 5.10 installations and verify the local API binding address.
- Restrict inbound access to the massCode API port using host-based firewall rules.
Patch Information
The fix is published in commit d25d8fa3f5a1e34285c8634f18729650c0c05cda, which replaces http://localhost:${apiPort} with http://127.0.0.1:${apiPort} in both integrations/clipper/src/api.ts and scripts/api-generate.js. See the GitHub Commit d25d8fa3, GitHub Pull Request #912, and GitHub Issue #966 for upstream context.
Workarounds
- Block inbound traffic to the massCode API port at the host firewall until the patched release is installed.
- Configure DNS and hosts file entries so localhost resolves strictly to 127.0.0.1.
- Operate massCode only on isolated or trusted network segments while patching is pending.
# Example host-based firewall rule to block external access to the massCode API port
sudo iptables -A INPUT -p tcp --dport 4321 ! -s 127.0.0.1 -j DROP
# Verify the massCode API is bound to loopback only
ss -tlnp | grep 4321
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

