Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@homebridge/hap-client

Latest version: v5.4.1-beta.4

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: bwp91, dustin.greif, ebaauw, khaost, nfarina, northernman, oznu, supereg
7 Stars
5 Forks
36 Versions
36.3K Downloads
TypeScript Repo language

Scan summary

@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.

  • Releases: 36 versions; the latest 2 were published within 6 days (21–26 Nov 2026).
  • Findings: No rules fired in version 5.4.1-beta.4.
  • Downloads: 36,334 downloads.

Versions

36 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 5.4.1-beta.4

Findings

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.

README

The publisher’s own README, as collected from the registry.

HAP Client

npm npm Discord

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.

API

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

hap-client Events

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.

Dependent Applications

  • homebridge-config-ui-x

  • homebridge-gsh

  • node-red-contrib-homebridge-automation

  • NPM Dependents

Credits

  • HAP Client was originally created by oznu.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @homebridge/hap-client

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229