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

@lukstei/dsh-client-pwa

Latest version: v0.2.2-rc.5.17

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: lukstei-user
1 Stars
0 Forks
14 Versions
2.4K Downloads
TypeScript Repo language

Scan summary

@lukstei/dsh-client-pwa was last scanned on 29 Nov 2026 at version 0.2.2-rc.5.17. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest 5 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.2.2-rc.5.17.
  • Downloads: 2,399 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.2-rc.5.17 LATEST 29 Nov 2026 No rules fired
0.2.2-rc.5.16 28 Nov 2026 No rules fired
0.2.2-rc.5.15 28 Nov 2026 No rules fired
0.2.2-rc.5.14 28 Nov 2026 Not shown
0.2.2-rc.5.13 28 Nov 2026 Not shown

No rules fired in 0.2.2-rc.5.17

Findings

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

README

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

@lukstei/dsh-client-pwa

Summary

Makes DSH installable as a PWA and lets trusted reverse-proxy requests log in without a token. It serves the web manifest and icons, injects the manifest links into the index page, and wraps the connection's index authorization with header and IP trust checks. For deployments behind Tailscale or another authenticating proxy.

Table of Contents

  • End user guide
  • Use this package
  • Understand the implementation
  • Further Exploration
  • Model Experience
  • Known Limitations and Deferred Work
  • Dev Note

End user guide

Makes DSH installable as a standalone app (Chrome or Safari) and optionally signs you in through a trusted reverse proxy. Full guide with demo and controls: https://lukstei.github.io/dsh-plugins/guide/dsh-client-pwa

dsh plugin --profile <web|desktop> add @lukstei/dsh-client-pwa

First use:

  1. Open DSH and use the browser's install option or Add to Home Screen.
  2. Launch the installed app.
  3. For proxy login, set auth as described below and read the security notes.

Use this package

Host plugin. Requires webServer and connection. The shipped bundle patch (cordis.patch.yml) leaves config empty, so DSH serves the PWA manifest and icons while keeping standard token login active:

- insert:
    - id: client-pwa
      name: '@lukstei/dsh-client-pwa'
      config: {}
Example 1: Localhost PWA

Install DSH as a desktop app on localhost without changing auth. Customize manifest metadata only if you want different app names or colors:

- id: client-pwa
  config:
    pwa:
      name: 'DeepSeek Harness'
      shortName: 'DSH'
Example 2: Tailscale Serve (reverse-proxy login)

Expose local DSH (localhost:3080) on your tailnet as an HTTPS service:

tailscale serve --service=svc:dsh --https=443 http://localhost:3080

Tailscale terminates TLS, sets tailscale-user-login, and proxies to DSH over loopback (127.0.0.1 / ::1). Override client-pwa in your profile cordis.patch.yml to trust that proxy:

- id: client-pwa
  config:
    auth:
      userHeader: 'tailscale-user-login'
      trustedCidrs: ['127.0.0.1', '::1', '100.64.0.0/10', 'fd7a:115c:a1e0::/48']
      authRoutes: ['/login', '/auth/tailscale', '/auto-login']
      loginRedirectPath: '/login'
    pwa:
      pathPrefixes: ['/tsctl'] # optional: only needed when mounted under a subpath
Config: auth
Field Default Meaning
userHeader none Request header carrying the verified user (e.g. tailscale-user-login, x-forwarded-user, remote-user)
allowedUsers none If non-empty, only these users are trusted
trustedCidrs none Trusted IPv4/IPv6 addresses or CIDR blocks
authRoutes ['/login'] Route paths that perform the token exchange
loginRedirectPath /login Where trusted but unauthenticated index requests are sent
secureCookies true Append ; Secure to Set-Cookie when x-forwarded-proto: https
Config: pwa
Field Default Meaning
name DeepSeek Harness Manifest name
shortName DSH Manifest short_name
themeColor #1f2430 Manifest theme_color
backgroundColor #0f172a Manifest background_color
startUrl /login Manifest start_url
scope / Manifest scope
display standalone Manifest display
pathPrefixes none Extra prefixes (e.g. /tsctl) where routes are also mounted; the root mount always exists
Plugin dependencies

Server-side only (no client entry). inject: webServer, connection.

Plugin / service Required? Provided by Effect without it
webServer Required @deepseek-ai/dsh-host-webserver Plugin stays pending; never applies. No manifest, icons, or head injection.
connection Required @deepseek-ai/dsh-client-connection Plugin stays pending; never applies. Its authorizeIndex/admit wrapper (reverse-proxy login) is not installed.

Non-plugin requirement: a reverse proxy that sets the configured auth.userHeader and connects from auth.trustedCidrs; otherwise trusted login never fires.

The shipped patch leaves auth unconfigured, so trusted-proxy login stays off until you configure auth.userHeader or auth.trustedCidrs. Used by: nothing.

Behavior
  • Routes per prefix: <prefix>/manifest.webmanifest (no-store), <prefix>/icons/{180,192,512}.png (max-age=86400, 404 for other sizes), and each auth route as a prefix route. Auth routes without a leading / get one.
  • The index HTML gets <link rel="apple-touch-icon" href="/icons/180.png"> and <link rel="manifest" href="/manifest.webmanifest"> (an existing manifest link is replaced). The injected links use root paths, not prefixed ones.
  • Trust check (isTrustedRequest): if userHeader is set and present, the user must be in allowedUsers when that list is non-empty. If the header is missing and allowedUsers is non-empty, the request is untrusted. Otherwise the client IP must match trustedCidrs. The IP is the first x-forwarded-for entry, else the socket address (the socket address is passed on auth routes only).
  • Auth route: 400 without Host, 403 if untrusted, else 303 to connection.authenticatedUrl(https://<host><matched prefix>) with cache-control: no-store and referrer-policy: no-referrer.
  • Index request without a token query param that the connection rejects: if the request is trusted, answer 200 with a small HTML page that does location.replace(loginRedirectPath). Otherwise the original authorization runs.
  • The wrap of connection.authorizeIndex is restored on dispose.

Understand the implementation

File Role
src/index.ts Schemas (Config, AuthConfig, PwaConfig), trust helpers, wrapAuthorizeIndex, handleAuthRedirect, route registration
src/pwa.ts DEFAULT_PWA_OPTIONS, pwaManifest, injectPwaHead, handleIconRequest
src/icons.ts Embedded base64 PNG icons for 180, 192, 512

normalizePrefixes trims slashes, drops empties and always includes "". isIpInCidrs uses node:net BlockList; it strips an IPv6 zone and ::ffff: mapping, and skips invalid entries. Manifest icons: /favicon.svg (any), /icons/192.png and /icons/512.png (any maskable), served from the root paths.

Persisted state: none. Trust boundary: the user header and x-forwarded-for are trusted as sent, so the proxy in front must set or strip them.

Tests: src/index.test.ts, src/pwa.test.ts (node --test).


Further Exploration

  • Upstream: DSH module graph.
  • @lukstei/dsh-client-notify: Service Worker, notifications and app-icon badge.

Model Experience

No model-visible surface. This package adds no tools, prompt text, or context to the model.

Known Limitations and Deferred Work

  • The index bounce checks the user header and x-forwarded-for only. It does not pass the socket address, so CIDR trust at the index needs a proxy that sets x-forwarded-for.
  • Injected manifest and touch-icon links always use root paths.
  • The auth redirect always targets https://.
  • Headers are trusted without signature; deploy only behind a proxy that controls them.
Dev Note

pnpm run verify runs Biome, typecheck and node --test. There is no build step; main points at src/index.ts.

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 @lukstei/dsh-client-pwa

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229