Skip to content

Commit dc74af9

Browse files
ralyodioclaude
andcommitted
fix(security): resolve high/critical npm audit vulnerabilities + semgrep
npm audit: - Add overrides: serialize-javascript>=7.0.5, postcss>=8.5.10, axios>=1.8.2 to force safe transitive dependency versions - Upgrade vitest 3.2.4 -> 4.1.8 (CRITICAL CVE-2025-*: arbitrary file read when UI server is listening) - Upgrade @vitest/ui 3.x -> 4.1.8 to match semgrep: - Add # nosemgrep: dockerfile.security.missing-user comment with rationale (Tor requires root to start; entrypoint drops to debian-tor for tor process) Result: 0 high/critical vulnerabilities (2 low remaining, below audit threshold) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 454497f commit dc74af9

4 files changed

Lines changed: 5934 additions & 6939 deletions

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ COPY entrypoint.sh /entrypoint.sh
9797
RUN chmod +x /entrypoint.sh
9898

9999
EXPOSE 8080
100+
# nosemgrep: dockerfile.security.missing-user.missing-user
101+
# Tor requires root at startup (chown /var/lib/tor, run tor daemon); entrypoint
102+
# drops to debian-tor for the tor process. A non-root USER here would break it.
100103
ENTRYPOINT ["/usr/bin/tini","--"] # nosemgrep: dockerfile.security.missing-user-entrypoint
101-
CMD ["/entrypoint.sh"] # nosemgrep: dockerfile.security.missing-user
104+
CMD ["/entrypoint.sh"]
102105

0 commit comments

Comments
 (0)