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

@dinghy-chat/widget

Latest version: v0.53.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: dinghy-chat
2 Stars
0 Forks
43 Versions
7.7K Downloads
TypeScript Repo language

Scan summary

@dinghy-chat/widget was last scanned on 23 Nov 2026 at version 0.53.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 43 versions; the latest 5 were published within 3 days (22–24 Nov 2026).
  • Findings: No rules fired in version 0.53.0.
  • Downloads: 7,715 downloads.

Versions

43 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.54.0 24 Nov 2026 No rules fired
0.53.0 23 Nov 2026 No rules fired
0.52.0 23 Nov 2026 No rules fired
0.51.0 23 Nov 2026 Not shown
0.50.0 22 Nov 2026 Not shown

No rules fired in 0.53.0

Findings

Findings for v0.53.0. 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 0.53.0; other versions have their own rules, not their own score.

README

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

Dinghy widget

The chat widget for Dinghy, a small live support chat you can host yourself. MIT licensed.

Add it with a tag

<script src="https://chat.example.com/widget/loader.js" data-key="YOUR_PUBLIC_KEY" async></script>

Or add it from npm

npm install @dinghy-chat/widget
import { init } from "@dinghy-chat/widget";

const dinghy = init({ url: "https://chat.example.com", key: "YOUR_PUBLIC_KEY" });
dinghy.on("unread", (count) => console.log(count));

init adds the tag once and returns the typed Dinghy object. Calls made before the script loads wait for it. It takes url, key, and primary, accent, mascot, branding, launcher, position, offsetX, offsetY, zIndex and locale.

Attributes

Attribute Effect
data-primary="#0b2239" Sets the header, your visitor's messages and the boat's hull. Use six hex digits.
data-accent="#e5352b" Sets the sail and the send button, and the launcher if the boat is off. Use six hex digits.
data-mascot="false" Removes the boat. Every state keeps its text.
data-launcher="hidden" Hides the launcher, so your own button opens the chat.
data-position="left" Puts the launcher and the chat on the left. The default is right.
data-offset-x="24" Pixels from the side of the window. The default is 16.
data-offset-y="80" Pixels from the bottom of the window. The default is 16.
data-locale="fr" The widget's language: en, fr or es, over the workspace's Language setting.

The widget ignores a value in any other format. The boat stops moving for a visitor who asks for reduced motion.

Set --dinghy-font, --dinghy-radius and --dinghy-launcher-radius on the dinghy-chat element to match your fonts and corners.

Host page API

Call What it does
Dinghy.open({ message }) Opens the chat. message is optional and fills the message box without sending it
Dinghy.close(), Dinghy.toggle() Closes the chat, or opens it if it is closed
Dinghy.show(), Dinghy.hide() Shows or hides the launcher
Dinghy.identify(token) Signs in a user. token is a string, or a function that returns a promise of one, so a tab can renew a token
Dinghy.reset() Ends the session in all tabs. Call this at sign-out
Dinghy.setContext(data) Unsigned facts for operators, such as a plan. Up to 20 keys, each a short string, a number, a boolean or null
Dinghy.configure(options) Changes primary, accent, position, offsetX, offsetY and zIndex now, and locale before the chat opens
Dinghy.nudge(), Dinghy.nudge(false) Pulses the launcher until the next open, or stops it. A waiting outbound message starts it too
Dinghy.on(event, callback) Calls callback on each event, and returns a function that removes it
Dinghy.state { ready, open, unread, conversation, visitorId, nudging }. visitorId is null before the visitor exists

The events are ready, open, close, unread (the count, at once and on each change), conversation, nudge (at once and on each change), visitor (the visitor's ID, once it exists), message:sent, message:received, conversation:started, outbound:read and outbound:dismissed.

message:received gets { id, body, sender, outbound }. id is null while the message waits outside a conversation, sender is { name, pictureUrl }, and outbound is { id, show, buttons } for an outbound message that waits, or null for a reply. With your own button and data-launcher="hidden", this and nudge are all you need to draw your own badge or card. outbound:read and outbound:dismissed get { id, button }.

To call these before the loader finishes, queue them:

<script>window.Dinghy = { q: [["identify", "TOKEN"], ["on", "unread", console.log]] };</script>

Your backend signs the token with HS256 and the workspace's signing secret. It needs sub (your user ID), aud (the public key), iat, and exp at most 24 hours later. email, name (one line, up to 100 characters) and attributes (an object up to 2 KB) are optional, and operators read them.

The widget stores nothing in the browser until the visitor sends a message, and then only its own token in localStorage. While such a visitor has the chat open, it notes that in sessionStorage, so the chat opens again after a reload in the same tab. Once the visitor has chatted, it reports the page's address, without its query string or # part, its title and the setContext data, so operators see where the visitor is.

Content Security Policy

If your site sets a CSP, add the origin of your Dinghy server to these directives:

script-src https://chat.example.com;
connect-src https://chat.example.com;
img-src https://chat.example.com;

If your Dinghy serves images and files from a separate origin (UPLOADS_ORIGIN), allow that origin in img-src and connect-src too, as the chat fetches a file to save it.

The widget needs no style-src change, because it uses constructable stylesheets and the CSSOM.

The full guide is at https://dinghy.chat/docs/add-to-your-site.

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 @dinghy-chat/widget

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

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

Frame 2085668439 (1)
Group 1261154229