Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Keep dependency floor checks valid after the lint migration

pulse-triage[bot]08636ad7f185
diff --git a/frontend-modern/src/security/__tests__/dependencySecurity.test.ts b/frontend-modern/src/security/__tests__/dependencySecurity.test.ts
index 918cffc33a..8a1d3bd7fb 100644
--- a/frontend-modern/src/security/__tests__/dependencySecurity.test.ts
+++ b/frontend-modern/src/security/__tests__/dependencySecurity.test.ts
@@ -150,15 +150,30 @@ describe('frontend dependency security floors', () => {
it('keeps every js-yaml copy above the empty-merge CPU exhaustion floor', () => {
// GHSA-2883-xcg3-v3hh: our override keeps every transitive copy on patched 4.x.
+ // ESLint's flat-config graph no longer needs the legacy YAML consumer.
+ // Removing that dependency is safe; any copy that returns still needs the fix.
expect(manifest.overrides['js-yaml']).toBe('^4.3.2');
const versions = lockedVersions('js-yaml');
- expect(versions).not.toHaveLength(0);
for (const version of versions) {
expect(version).not.toContain('-');
expect(atLeast(version, [4, 3, 2]), `js-yaml ${version} is vulnerable`).toBe(true);
}
});
+ it('keeps modern glob consumers above the minimatch amplification floor', () => {
+ // GHSA-g3hv-75wg-m249 affects every minimatch release before 11.0.1.
+ // Scope the override to modern v10 edges, not callable/default v3 consumers.
+ expect(manifest.overrides['minimatch@^10.0.0']).toBe('11.0.1');
+ expect(manifest.overrides.minimatch).toBeUndefined();
+ expect(lockedVersions('@eslint/eslintrc')).toEqual([]);
+ const versions = lockedVersions('minimatch');
+ expect(versions).not.toHaveLength(0);
+ for (const version of versions) {
+ expect(version).not.toContain('-');
+ expect(atLeast(version, [11, 0, 1]), `minimatch ${version} is vulnerable`).toBe(true);
+ }
+ });
+
it.each(['^3.4.13', '^3.4.14', '^3.5.0'])('accepts patched DOMPurify range %s', (range) => {
expect(dompurifyRangeIsPatched(range)).toBe(true);
});