Skip to content

Potential fix for code scanning alert no. 29: Log injection#114

Closed
utsavjosh1 wants to merge 1 commit into
mainfrom
alert-autofix-30
Closed

Potential fix for code scanning alert no. 29: Log injection#114
utsavjosh1 wants to merge 1 commit into
mainfrom
alert-autofix-30

Conversation

@utsavjosh1

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/utsavjosh1/Postly/security/code-scanning/29

Best fix: stop logging dynamic error messages that may include user input in this path, and log a constant message (optionally with safe internal context that is not user-controlled).

In apps/api/src/services/resume.service.ts, update the catch block in processResume so console.error no longer includes error.message (sanitized or not). Keep behavior unchanged for users by still returning resume. This preserves functionality while removing tainted data from logs entirely.

No new imports or dependencies are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Apr 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
postly-web Ready Ready Preview, Comment Apr 28, 2026 5:34pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant