Signal K Server: Unauthenticated Source Priorities ManipulationGHSA-gfmv-vh34-h2x5
HIGHGHSA-gfmv-vh34-h2x5 is a high-severity (CVSS 7.5) CWE-284 vulnerability in signalk-server. A fix is available for signalk-server — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
signalk-servernpmDescription
Summary
The SignalK Server exposes an unauthenticated HTTP endpoint that allows remote attackers to modify navigation data source priorities. This endpoint, accessible via PUT /signalk/v1/api/sourcePriorities, does not enforce authentication or authorization checks and directly assigns user-controlled input to the server configuration.
As a result, attackers can influence which GPS, AIS, or other sensor data sources are trusted by the system. The changes are immediately applied and persisted to disk, allowing the manipulation to survive server restarts.
Affected Component
- File:
src/serverroutes.ts - Endpoint:
PUT /signalk/v1/api/sourcePriorities(also accessible at/skServer/sourcePriorities) - Lines: 1064-1076
- Function: Source priorities configuration handler
Vulnerable Code
// src/serverroutes.ts - Lines 1064-1076
app.put(
`${SERVERROUTESPREFIX}/sourcePriorities`,
(req: Request, res: Response) => {
app.config.settings.sourcePriorities = req.body
app.activateSourcePriorities()
writeSettingsFile(app, app.config.settings, (err: any) => {
if (err) {
res
.status(500)
.send('Unable to save to sourcePrefences in settings file')
} else {
res.json({ result: 'ok' })
}
})
}
)
Vulnerability Characteristics
Missing Authentication: The endpoint has zero authentication middleware, allowing unauthenticated access from any network-adjacent attacker.
Direct Configuration Assignment: User-supplied request body is directly assigned to app.config.settings.sourcePriorities without validation or sanitization.
Persistent Storage: Malicious configuration is written to disk via writeSettingsFile(), ensuring changes survive server restarts. Live Configuration Update: Changes take effect immediately via activateSourcePriorities(), affecting live navigation data processing.
No Input Validation: No JSON schema validation, type checking, or field allowlisting is performed on the request body.
Impact
- Navigation Data Manipulation: Attackers can modify source priorities to change which existing, active source's data is being used
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | signalk-server | all versions | 2.24.0-beta.1npm install signalk-server@2.24.0-beta.1 |
Affected Products
signal k serversignalkDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for signalk-server, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update signalk-server to 2.24.0-beta.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-gfmv-vh34-h2x5 is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Frequently Asked Questions
Is GHSA-gfmv-vh34-h2x5 in your dependencies?
Find it across npm, including transitive dependencies.