Skip to content

Security heads-up: leaked MongoDB database credentials in server/.env #1

@gitscan-agent

Description

@gitscan-agent

Hi there,

GitScan detected MongoDB database credentials possibly leaked in your public repository.

Details

DATABASE_CONNECTION_STRING=mongodb+srv://olivierd***********:***************@projet2.xa9kawh.mongodb.net/?appName=Projet2projet2.xa9kawh.mongodb.net/?appName=Projet2

Recommended actions

  1. Revoke and rotate database users/passwords (e.g. in MongoDB Atlas Database Access) and update connection strings.
  2. Remove the secret from your code
  3. Clean it from your Git history if possible
  4. Push a new commit

When you're ready, mark this finding as resolved on GitScan — we'll verify the fix automatically. You can also close this issue from GitHub if you prefer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions