[PR #5948] fix: prevent sensitive data leakage in error logs #13283

Closed
opened 2026-04-10 21:50:56 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/5948

State: closed
Merged: Yes


Summary

This PR fixes a security issue where sensitive data (private keys, tokens, stack traces) could be leaked in error logs.

Changes

  • app-gocardless.js: Replaced inspect(error, { depth: null }) with error.message to prevent logging full error objects with sensitive data
  • handle-error.js: Applied same fix to error handler
  • integration-bank.js: Removed debug logging that exposed full account and transaction details
  • app-simplefin.js: Removed logging of SimpleFIN access keys
  • Removed unused inspect imports

Security Impact

Previously, error logging could expose:

  • Private keys and authentication tokens in stack traces
  • Full SimpleFIN access keys
  • Complete account and transaction data

Now, only safe error messages are logged while maintaining debugging capability.

Testing

  • Existing tests should continue to pass
  • Error handling behavior remains unchanged, only logging is modified
**Original Pull Request:** https://github.com/actualbudget/actual/pull/5948 **State:** closed **Merged:** Yes --- ## Summary This PR fixes a security issue where sensitive data (private keys, tokens, stack traces) could be leaked in error logs. ## Changes - **app-gocardless.js**: Replaced `inspect(error, { depth: null })` with `error.message` to prevent logging full error objects with sensitive data - **handle-error.js**: Applied same fix to error handler - **integration-bank.js**: Removed debug logging that exposed full account and transaction details - **app-simplefin.js**: Removed logging of SimpleFIN access keys - Removed unused `inspect` imports ## Security Impact Previously, error logging could expose: - Private keys and authentication tokens in stack traces - Full SimpleFIN access keys - Complete account and transaction data Now, only safe error messages are logged while maintaining debugging capability. ## Testing - Existing tests should continue to pass - Error handling behavior remains unchanged, only logging is modified
GiteaMirror added the pull-request label 2026-04-10 21:50:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#13283