Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cacheMiddleware, NotFound } from './utils.js';
import { cacheMiddleware, NotFound, HttpError } from './utils.js';
import CONFIG from './config.loader.js';
global.CONFIG = CONFIG;

Expand Down Expand Up @@ -62,7 +62,13 @@ function logErrors(err, req, res, next) {
// Optional Sentry (instrument.js sets the global only when the
// linked module is present AND config has SENTRY_DSN — plain
// open-source installs never see it).
if (global.__Sentry) {
// Expected outcomes are NOT app errors: NotFound and client-class
// HttpErrors (404 target pages, 408 fetch timeouts, 417 processing
// rejections) mean the REQUESTED URL failed, not iframely — only
// 5xx HttpErrors and raw exceptions reach Sentry.
if (global.__Sentry
&& !(err instanceof NotFound)
&& !(err instanceof HttpError && err.code < 500)) {
global.__Sentry.captureException(err);
}

Expand Down
24 changes: 1 addition & 23 deletions audit.log
Original file line number Diff line number Diff line change
@@ -1,23 +1 @@
┌─────────────────────┬────────────────────────────────────────────────────────┐
│ high │ brace-expansion: DoS via unbounded expansion length │
│ │ causing an out-of-memory process crash │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Package │ brace-expansion │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Vulnerable versions │ <=5.0.7 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Patched versions │ >=5.0.8 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Paths │ .>ejs>jake>filelist>minimatch>brace-expansion │
│ │ │
│ │ .>mocha>minimatch>brace-expansion │
│ │ │
│ │ .>ejs>jake>minimatch>brace-expansion │
│ │ │
│ │ ... Found 4 paths, run `pnpm why brace-expansion` for │
│ │ more information │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ More info │ https://github.com/advisories/GHSA-mh99-v99m-4gvg │
└─────────────────────┴────────────────────────────────────────────────────────┘
1 vulnerabilities found
Severity: 1 high
No known vulnerabilities found
116 changes: 61 additions & 55 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading