Skip to content

fix(deps): close all 67 known dependency advisories and gate against new ones - #5

Merged
TheMeinerLP merged 6 commits into
mainfrom
fix/trivy-vulnerabilities
Aug 7, 2026
Merged

TheMeinerLP merged 6 commits into
mainfrom
fix/trivy-vulnerabilities

Conversation

@TheMeinerLP

@TheMeinerLP TheMeinerLP commented Aug 7, 2026 •

Copy link
Copy Markdown

Trivy reported 67 advisories across the three dependency trees. All of them are closed here, and a CI gate stops the next batch from accumulating the same way.

None of these had ever been checked: nothing in this repository scanned for known advisories. Renovate raises versions, but it says nothing about whether the ones in use are exploitable.

What was found and fixed

Tree Before After Packages
Backend (JVM) 33 0 jackson, netty, jetty, postgresql
Dashboard (npm) 18 0 axios, fast-uri, postcss, unhead
Documentation site (npm) 16 0 next, js-yaml, postcss, sharp

Zero remaining at every severity, LOW included.

The three that needed more than a bump

netty and jetty are not declared here. netty arrives with the AWS SDK's netty-nio-client, jetty with javalin-ssl. Waiting for those projects to bump was the alternative, so both are raised with a platform constraint instead. Each stays on the line its consumer compiles against: netty 4.2.x and jetty 12.1.x are not drop-in replacements for what the AWS SDK and Javalin expect.

unhead was unreachable from where we were. @vueuse/head 2.0.0 is its final release and pins @unhead/vue to 1.x, so no bump reaches the fixed unhead. An override would have been dishonest, placing unhead 2.x under an @unhead/vue that calls 1.x internals. Head management therefore moves to @unhead/vue 3, which is where upstream went and which this project's Vue and Vite versions already satisfy. The migration is two import lines; the only usage is one createHead and one useHead.

postcss and sharp are pinned by Next, exactly and by range respectively, so neither moves on its own. Both are overridden.

How each change was verified

  • Backend: unit and integration suites pass, both licence gates pass
  • Dashboard: verified against a running dev server, not just a build. A probe title set through useHead reaches document.title, so the head migration actually works.
  • Documentation site: verified with a full next build. The overrides are load bearing, so a green install proves nothing; every guide and plugin page still prerenders.
  • All three: rescanned with the exact commands CI runs

One finding worth stating plainly: the console shows a Vue plugin warning near the head setup. It predates this branch, comes from vue3-tabs, and reproduces on an unmodified checkout. It is not a regression from the unhead migration.

The gate

A new Vulnerabilities job scans all three trees and fails on CRITICAL, HIGH and MEDIUM.

The backend scan needed groundwork. Trivy reads lockfiles and this build has none, and the shadow jar flattens away the nested jars Trivy would identify dependencies by, so a collectRuntimeDependencies task copies the resolved runtime classpath out and the scanner reads the jars by checksum. That is why the backend's 33 advisories were invisible until now.

--ignore-unfixed is deliberately not set. An advisory with no released fix is still worth knowing about, and suppressing one should be a recorded decision in .trivyignore, which asks for a reason and an expiry.

One unrelated fix, needed to get CI green

gradle build test, the task set the shared build workflow runs, failed validation: jacocoTestReport reads coverage data out of a directory integrationTest also writes to, with no ordering between them. Two tasks write there, integration and integrationTest, and only the first was ordered.

This is pre-existing and reproduces on an unmodified main. It surfaces now because that build job has never actually run in this repository: it failed at startup validation until this week, and has been skipped on pushes since. This branch is the first time it has executed, and therefore the first time it passed.

Trivy reported 33 advisories against the runtime classpath, none of which had
ever been checked because nothing scans this build.

jackson and postgresql are declared here and are bumped directly. netty and
jetty are not: netty arrives with the AWS SDK's netty-nio-client and jetty with
javalin-ssl, so the only way to raise them without waiting for those projects is
a platform constraint. Both stay on the line their consumers compile against,
because netty 4.2.x and jetty 12.1.x are not drop-in replacements for what the
AWS SDK and Javalin expect.

Also adds the task that made the scan possible. Trivy reads lockfiles and this
build has none, while the shadow jar flattens away the nested jars it would
identify dependencies by, so the resolved runtime classpath is copied out and
the scanner is pointed at the jars themselves.

Verified: 33 advisories to 0, with the unit and integration suites passing.
Trivy reported 18 advisories. axios is declared here and is bumped; postcss and
fast-uri were already inside their parents' accepted ranges and only needed the
lockfile refreshed.

unhead needed more than a bump. @vueuse/head 2.0.0 is its last release and pins
@unhead/vue to the 1.x line, so the three advisories against unhead 1.11.20 are
unreachable from there. An override would have been dishonest: it would place
unhead 2.x under an @unhead/vue that calls 1.x internals. The head management
therefore moves to @unhead/vue 3, which is where upstream went, and which the
project's Vue and Vite versions already satisfy.

The migration is two import lines, since the only usage is createHead in main.js
and a single useHead in App.vue.

Verified against a running dev server, not just a build: a probe title set
through useHead reaches document.title. The Vue plugin warning visible in the
console predates this change, comes from vue3-tabs, and reproduces on an
unmodified checkout.

Verified: 18 advisories to 0, npm ci and the licence gate still pass.
Trivy reported 16 advisories. Bumping next to 15.5.21 cleared the six against
Next itself, and js-yaml was already inside gray-matter's accepted range.

postcss and sharp needed overrides. Next pins postcss to an exact version and
constrains sharp to a range that excludes the fixed release, so neither moves on
its own. Overrides are load bearing here rather than cosmetic, which is why the
change is verified by a full next build: every guide and plugin page still
prerenders.
Sixty-seven advisories accumulated across the JVM and npm trees without anything
noticing, because nothing was looking. Renovate raises versions but says nothing
about whether the current ones are exploitable, and the licence gate beside this
one answers a different question.

Trivy now scans all three dependency trees and fails on CRITICAL, HIGH and
MEDIUM. The backend scan runs against the collected runtime classpath rather
than the sources, since Trivy reads lockfiles and this build has none.

Deliberately not set: --ignore-unfixed. An advisory with no released fix is
still worth knowing about, and suppressing it should be a recorded decision in
.trivyignore rather than a blanket flag.
The vulnerability gate has no escape hatch documented, so the first person to
meet an advisory without a released fix has to guess whether to widen the
severity filter, add --ignore-unfixed, or pin something.

The file is empty on purpose and says what qualifies: no fix exists, or the code
path is provably unreachable. It also asks for a reason and an expiry, so a
suppression that outlived its cause surfaces instead of becoming permanent.
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

Test results

 67 files   67 suites   10m 6s ⏱️
321 tests 320 ✅ 1 💤 0 ❌
323 runs  322 ✅ 1 💤 0 ❌

Results for commit eed6e68.

♻️ This comment has been updated with latest results.

`gradle build test`, the task set the shared build workflow runs, failed
validation: jacocoTestReport reads execution data out of the build directory
that integrationTest also writes to, without any ordering between them. Gradle
refuses that rather than risk a report built from data a task it may schedule
later has not produced yet.

Two tasks write there. The coditory plugin contributes `integration` and the JVM
test suite plugin contributes `integrationTest`, and only the first was ordered.

Pre-existing and unrelated to the dependency work in this branch: it reproduces
on an unmodified main. It surfaces now because the build job in question has
never actually run. It failed at startup validation until this week, and has
been skipped on pushes since.
@TheMeinerLP
TheMeinerLP merged commit 0b6a85d into main Aug 7, 2026
7 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/trivy-vulnerabilities branch November 14, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant