Scan your whole stack
From OX Research Newsroom
Are you using @homebridge/hap-client?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v5.4.1-beta.4
@homebridge/hap-client was last scanned on 26 Nov 2026 at version 5.4.1-beta.4. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 5.4.1-beta.4 LATEST | 26 Nov 2026 | No rules fired |
| 5.4.1-beta.3 | 21 Nov 2026 | No rules fired |
| 5.4.1-beta.2 | 16 Nov 2026 | No rules fired |
| 5.4.1-beta.1 | 16 Nov 2026 | Not shown |
| 5.4.1-beta.0 | 14 Nov 2026 | Not shown |
Findings for v5.4.1-beta.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 5.4.1-beta.4; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A client for an insecure HAP-NodeJS instance. Provides a Typescript based interface based on the homekit accessory protocol, allowing the creation of clients able to connect to and control Homebridge devices.
const { HapClient } = require('@homebridge/hap-client');
this.hapClient = new HapClient({
config: { debug: true },
pin: config.username,
logger: this.log,
});
this.monitor = await this.hapClient.monitorCharacteristics(services?: ServiceType[]); // Creates event monitors for all event capabable Homebridge services. If a list of services is, this list is used rather than all
The discovery timeout can be configured by setting the discoveryTimeout property in the config object.
Set debugRawPackets: true together with debug: true to pass complete HAP event-monitor TCP packets and full getValue() HTTP exchanges to the logger's debug method as plain text. A getValue() exchange includes the serialized GET request followed by the response status line, headers, and unparsed body. Raw sent packets can contain the bridge PIN, so only enable this temporarily and treat the resulting logs as sensitive.
const { HapClient } = require('@homebridge/hap-client');
this.hapClient = new HapClient({
config: { debug: true, discoveryTimeout: 5000, instanceBlacklist: ['34:42:4E:4A:38:00', '6E:69:51:34:54:00']},
pin: config.username,
logger: this.log,
});
// the discovery process will auto-start now with the timeout of 5 seconds
It's possible to control the discovery process manually, by settings the autoStartDiscovery property to false and then calling this.hapClient.startDiscovery(discoveryTimeout?: number) when ready. If no timeout is provided to the function, the discoveryTimeout property will be used from the config object, and if that is not provided either, the default discovery timeout (60 seconds) will be used.
It's also possible to stop the discovery process manually by calling stopDiscovery()
const { HapClient } = require('@homebridge/hap-client');
this.hapClient = new HapClient({
config: { debug: true, autoStartDiscovery: false, discoveryTimeout: 10000 },
pin: config.username,
logger: this.log,
});
this.hapClient.startDiscovery(); // use the timeout provided in the config, 10000 ms
this.hapClient.startDiscovery(5000); // use the argument as timeout, 5000 ms
this.hapClient.stopDiscovery(); // stop the discovery process manually
this.hapClient.on('instance-discovered', this.instanceDiscovered(instance: HapInstance)); // Emitted during discovery for each HB instance discovered
this.hapClient.on('instance-configuration-changed', this.instanceChanged(instance: HapInstance)); // Emitted during discovery for each HB instance change
this.hapClient.on('discovery-terminated', this.discoveryTerminated()); // Instance discovery was terminated
this.hapClient.on('discovery-ended', this.discoveryEnded()); // Emitted when discovery has ended ( 60 Seconds )
this.hapClient.on('discovery-stopped', this.discoveryStopped()); // Emitted when discovery has been stopped manually
this.monitor.on('service-update', this.serviceUpdate(services)); // Emitted when a characteristic change is received from a homebridge service
this.monitor.on('monitor-close', this.monitorClose(instance, hadError)); // Emitted when the connection to a homebridge service is closed ( likely a restart )
this.monitor.on('monitor-error', this.monitorError(instance, error)); // Emitted when the connection to a homebridge service has an error ( likely a restart )
this.monitor.on('monitor-refresh', this.monitorRefresh(instance, error)); // Emitted when the connection to a homebridge instance has been refreshed or restarted
When a monitored service reports a StatusActive change, the monitor refreshes its other readable, event-enabled characteristics before emitting service-update. This ensures any HAP error statuses returned during an availability change are reflected in the emitted service.
homebridge-config-ui-x
homebridge-gsh
node-red-contrib-homebridge-automation
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.