• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zwave-js / zwave-js-ui / 27951347502
8%

Build:
DEFAULT BRANCH: master
Ran 22 Jun 2026 12:06PM UTC
Jobs 1
Files 71
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jun 2026 12:05PM UTC coverage: 18.995% (+0.06%) from 18.933%
27951347502

push

github

web-flow
fix: prevent symlinks from escaping the store directory (#4678)

The `PUT/POST` `/api/store-multi` endpoints and the backup-restore flow
took user-supplied paths and applied only a string-prefix check, so an
authenticated user could delete or ZIP-export files outside storeDir,
and a restore archive could plant a symlink that escaped `storeDir` to
write arbitrary files. The shared `getSafePath()` helper never resolved
real paths, so symlinked components defeated the confinement.

With this PR, `getSafePath()` now normalizes paths relative to the
`storeDir` and resolves the targets of symlinks, optionally throwing if
a path ends up pointing outside the store.
Also, the restore flow now stages the ZIP file contents, and checks them
for symlinks that would point outside the store, before restoring the
archive.

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

417 of 544 branches covered (76.65%)

Branch coverage included in aggregate %.

30 of 113 new or added lines in 3 files covered. (26.55%)

4448 of 25068 relevant lines covered (17.74%)

1.12 hits per line

Uncovered Changes

Lines Coverage ∆ File
80
0.0
0.0% api/app.ts
2
0.0
0.0% api/lib/ZwaveClient.ts
1
55.67
2.29% api/lib/utils.ts
Jobs
ID Job ID Ran Files Coverage
1 27951347502.1 22 Jun 2026 12:06PM UTC 71
19.0
GitHub Action Run
Source Files on build 27951347502
  • Tree
  • List 71
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 592e1b86 on github
  • Prev Build on master (#27950167033)
  • Next Build on master (#27953325417)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc