fix(deps): Trivy-gaten grön — dompurify/source-map-js/undici patchade, nodemailer 10.0.6
Säkerhetsgaten (security / scan) föll på Trivy fs, inte på gitleaks: 8 fynd i package-lock.json (1 CRITICAL, 7 HIGH). dompurify 3.4.14 -> 3.4.18 GHSA-cg2g-xh64-v4q7 (CRITICAL), GHSA-mrv2-3pqr-j5jr nodemailer 9.1.1 -> 10.0.6 CVE-2026-90776, GHSA-v53p-9fqp-m79j source-map-js 1.2.1 -> 1.2.2 CVE-2026-93749 undici 6.29.0 -> 6.29.1 CVE-2026-109383, CVE-2026-109869, CVE-2026-87018 dompurify, source-map-js och undici är transitiva (posthog-js, tailwind/postcss, @ai-sdk/provider-utils) och pinnas med overrides. nodemailer är en direkt dependency och bumpas till 10.x: de kvarvarande 9.x-advisories är bara fixade där, vilket PINNED_DEPS-posten redan slog fast som en separat granskad PR — det här är den PR:en. Den 10.0-API som används (createTransport/sendMail) är oförändrad; email-sviten (99 tester) och hela unit-sviten (22 339) är gröna, check:types/check:lint/check:guards likaså. Verifierat: trivy fs --severity HIGH,CRITICAL -> 0 vulnerabilities, 0 secrets, 0 misconfigurations. Revert: git revert <sha> (återställer package.json, package-lock.json och PINNED_DEPS-posten tillsammans).
This commit is contained in:
Generated
+14
-14
@@ -45,7 +45,7 @@
|
||||
"next": "^16.4.1",
|
||||
"next-intl": "^4.13.2",
|
||||
"next-themes": "^0.4.6",
|
||||
"nodemailer": "9.1.1",
|
||||
"nodemailer": "10.0.6",
|
||||
"pdf-lib": "^1.17.1",
|
||||
"posthog-js": "^1.407.3",
|
||||
"posthog-node": "^5.46.1",
|
||||
@@ -9946,9 +9946,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/dompurify": {
|
||||
"version": "3.4.14",
|
||||
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.14.tgz",
|
||||
"integrity": "sha512-dVoH9z+MY+C9IilgGCk3YfFqjLi3fChm2OiKJMzh6axrJ5qwxqWaZamgmHrpv22CN/KdbZJuGEGgfQoL00LTdg==",
|
||||
"version": "3.4.18",
|
||||
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.18.tgz",
|
||||
"integrity": "sha512-ofe3wI/uNm68HInABYFJYqQxRw1EaKAjNdrFVKqjUY+UZurvNd2L/HuQe097s/4RivWiZyP6tT7aoT8atjfhwg==",
|
||||
"license": "(MPL-2.0 OR Apache-2.0)",
|
||||
"optionalDependencies": {
|
||||
"@types/trusted-types": "^2.0.7"
|
||||
@@ -14003,12 +14003,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/nodemailer": {
|
||||
"version": "9.1.1",
|
||||
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-9.1.1.tgz",
|
||||
"integrity": "sha512-izw9mVKFix6YSnC9eLgV6g1opl9DUlRio9ZNcq+Wu9Ujn2UwF+8Nl0B8nz22kEC+CTZCvinkxwJ0DeFbb6NwcQ==",
|
||||
"version": "10.0.6",
|
||||
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-10.0.6.tgz",
|
||||
"integrity": "sha512-2u7OHvEQVVGvPo9Yhw/eN3xMO2Gnj2U2fGDP0BDpnRwJR//65AfGRQDiJqxix28gFRBvMqi2USA13x6RrfWuGg==",
|
||||
"license": "MIT-0",
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
"node": ">=20.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/normalize-svg-path": {
|
||||
@@ -15659,9 +15659,9 @@
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/source-map-js": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
||||
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
|
||||
"integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
|
||||
"license": "BSD-3-Clause",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
@@ -16937,9 +16937,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "6.29.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz",
|
||||
"integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==",
|
||||
"version": "6.29.1",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz",
|
||||
"integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18.17"
|
||||
|
||||
+5
-2
@@ -66,7 +66,7 @@
|
||||
"next": "^16.4.1",
|
||||
"next-intl": "^4.13.2",
|
||||
"next-themes": "^0.4.6",
|
||||
"nodemailer": "9.1.1",
|
||||
"nodemailer": "10.0.6",
|
||||
"pdf-lib": "^1.17.1",
|
||||
"posthog-js": "^1.407.3",
|
||||
"posthog-node": "^5.46.1",
|
||||
@@ -110,6 +110,9 @@
|
||||
"overrides": {
|
||||
"html-to-text": "10.0.1",
|
||||
"sharp": "^0.35.3",
|
||||
"postcss": "^8.5.18"
|
||||
"postcss": "^8.5.18",
|
||||
"dompurify": "^3.4.17",
|
||||
"source-map-js": "^1.2.2",
|
||||
"undici": "^6.29.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -758,12 +758,15 @@ const PINNED_DEPS = [
|
||||
},
|
||||
{
|
||||
name: 'nodemailer',
|
||||
version: '9.1.1',
|
||||
version: '10.0.6',
|
||||
reason:
|
||||
'SMTP mailer for self-hosts (extensions/general/email/lib/smtp-service.ts). Zero-dependency MIT-0 ' +
|
||||
'package on the outbound-mail path; bumps are deliberate, reviewed PRs (audit surface), never silent. ' +
|
||||
'Bumped 9.0.5 -> 9.1.1 (2026-09-30) for HIGH advisories GHSA-2x7j-588g-ccc2 / GHSA-8m3c-c648-2xjj, ' +
|
||||
'same major; the rest of the 9.x advisories are only fixed in 10.x (major, separate reviewed PR).',
|
||||
'Bumped 9.0.5 -> 9.1.1 (2026-09-30) for HIGH advisories GHSA-2x7j-588g-ccc2 / GHSA-8m3c-c648-2xjj. ' +
|
||||
'Bumped 9.1.1 -> 10.0.6 (2026-11-15): the remaining 9.x advisories (CVE-2026-90776 header DoS, ' +
|
||||
'GHSA-v53p-9fqp-m79j addressparser backtracking) are only fixed in 10.x, and Trivy failed the ' +
|
||||
'security gate on them. The 10.0 API used here (createTransport + sendMail) is unchanged; the ' +
|
||||
'smtp-service suite covers the transport options that matter (requireTLS, AUTH, envelope).',
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user