Skip to content

SecOps: [HIGH] Fix insecure file permissions for credentials#46

Open
mbergo wants to merge 1 commit into
supermemoryai:mainfrom
mbergo:fix/file-permissions
Open

SecOps: [HIGH] Fix insecure file permissions for credentials#46
mbergo wants to merge 1 commit into
supermemoryai:mainfrom
mbergo:fix/file-permissions

Conversation

@mbergo
Copy link
Copy Markdown

@mbergo mbergo commented May 18, 2026

Fix insecure file permissions in shared folder.

Explicitly set file mode to 0600 for credentials, config, and settings to prevent unauthorized local access to API keys.

  • Update src/lib/auth.js

  • Update src/lib/project-config.js

  • Update src/lib/settings.js

Added explicit fs.chmodSync(path, 0o600) after sensitive writes to ensure existing files with insecure permissions are also secured. Corrected auth.js, project-config.js, and settings.js.

Fix insecure file permissions in shared folder.

Explicitly set file mode to 0600 for credentials, config, and
settings to prevent unauthorized local access to API keys.

* Update src/lib/auth.js

* Update src/lib/project-config.js

* Update src/lib/settings.js

Added explicit fs.chmodSync(path, 0o600) after sensitive writes to ensure
existing files with insecure permissions are also secured. Corrected
auth.js, project-config.js, and settings.js.
@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedsupermemory@​4.21.17210010094100
Updated@​biomejs/​biome@​2.3.13 ⏵ 2.4.15100 +110010098 -1100

View full report

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