@_linked/server 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/package.json +3 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @\_linked/server
2
2
 
3
+ ## 2.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#65](https://github.com/linked-fw/server/pull/65) [`85d61d1`](https://github.com/linked-fw/server/commit/85d61d107af292d2b6e02d73bb41251248239d2c) Thanks [@flyon](https://github.com/flyon)! - Upgrade `sharp` to ^0.35.4 and drop the unused `adm-zip` dependency.
8
+
9
+ `sharp` was pinned to `^0.34.4`, which resolves to a build carrying the libvips
10
+ advisories CVE-2026-33327, -33328, -35590 and -35591. This is not a
11
+ tooling-only exposure: `LinkedServer` imports `sharp` at module top level and
12
+ registers `GET /resized/*` **before** the `apiOnly` guard, so the handler is
13
+ live in an API-only deployment too. It fetches a URL and pipes the bytes
14
+ straight into `sharp()`, which makes those the only advisories in this package
15
+ reachable from a request.
16
+
17
+ `^0.35.4` is a semver-major for sharp, but the surface used here —
18
+ `sharp(buffer|path)`, `.metadata()`, `.resize(w, h)`, `.toFormat(fmt, opts)`,
19
+ `.toBuffer()` and `.toFile()` — is unchanged between the two. Verified by
20
+ exercising exactly those calls against jpeg, png and webp, through both the
21
+ buffer branch and the `toFile` branch. sharp 0.35 requires Node >= 20.9.
22
+
23
+ Flagged `minor` rather than `patch` because sharp 0.35 drops some older
24
+ platform prebuilds; consumers on an unusual target should check that a binary
25
+ exists for theirs.
26
+
27
+ Five declared dependencies are removed, each referenced nowhere in the package:
28
+ `adm-zip`, `archiver`, `zip-a-folder`, `node-hook` and `is-object`. Only
29
+ `adm-zip` carried advisories -- three of them, so that is three fewer for every
30
+ consumer. The other four are weight rather than risk: 38 fewer packages in a
31
+ consumer's tree.
32
+
33
+ Note for whoever picks it up next: `resizeImage` still fetches an arbitrary
34
+ `req.query.src` server-side. The `// TODO: restrict resizing to images that are
35
+ stored by LinkedFileStorage` above it is an unfixed SSRF and is arguably a
36
+ bigger problem than the libvips CVEs this change closes. Deliberately left
37
+ alone here rather than mixed into a dependency bump.
38
+
3
39
  ## 2.8.0
4
40
 
5
41
  ### Minor Changes
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/linked-fw/server.git"
12
12
  },
13
- "version": "2.8.0",
13
+ "version": "2.9.0",
14
14
  "packageManager": "npm@11.19.1",
15
15
  "linkedPackage": true,
16
16
  "type": "module",
@@ -38,8 +38,6 @@
38
38
  "@_linked/cli": "^1.2",
39
39
  "@_linked/core": "^2.20.0",
40
40
  "@_linked/server-utils": "^1.3.0",
41
- "adm-zip": "^0.5.16",
42
- "archiver": "^7.0.1",
43
41
  "autoprefixer": "^10.4.18",
44
42
  "body-parser": "^1.20.2",
45
43
  "chalk": "4.1.2",
@@ -48,10 +46,8 @@
48
46
  "cron": "^4.3.4",
49
47
  "express": "^4.18.3",
50
48
  "fetch-cookie": "^3.1.0",
51
- "is-object": "^1.0.2",
52
49
  "n3": "^1.17.2",
53
50
  "node-addon-api": "^8.2.2",
54
- "node-hook": "^1.0.0",
55
51
  "open": "^8.4.0",
56
52
  "proper-lockfile": "^4.1.2",
57
53
  "react": "^18.2",
@@ -59,14 +55,13 @@
59
55
  "react-error-boundary": "^4.0.13",
60
56
  "react-router-dom": "^6.22.3",
61
57
  "rimraf": "^5.0.5",
62
- "sharp": "^0.34.4",
58
+ "sharp": "^0.35.4",
63
59
  "tough-cookie": "^6.0.0",
64
60
  "tsconfig-to-dual-package": "^1.2.0",
65
61
  "typescript": "^5.7.3",
66
62
  "webpack": "^5.90.3",
67
63
  "webpack-dev-middleware": "^7.0.0",
68
- "webpack-hot-middleware": "^2.26.1",
69
- "zip-a-folder": "^3.1.8"
64
+ "webpack-hot-middleware": "^2.26.1"
70
65
  },
71
66
  "devDependencies": {
72
67
  "@changesets/changelog-github": "^0.5.2",