Advisory

GHSA-pr72-8fxw-xx22

Also known as: CVE-2025-55740, GO-2025-3896

Summary

Default Credentials in nginx-defender Configuration Files

Details

Impact
This is a configuration vulnerability affecting nginx-defender deployments. Example configuration files
config.yaml, docker-compose.yml contain default credentials (default_password: "change_me_please", GF_SECURITY_ADMIN_PASSWORD=admin123). If users deploy nginx-defender without changing these defaults, attackers with network access could gain administrative control, bypassing security protections.

Who is impacted?
All users who deploy nginx-defender with default credentials and expose the admin interface to untrusted networks.

Patches
The issue is addressed in v1.5.0 and later.

Startup warnings are added if default credentials are detected.
Documentation now strongly recommends changing all default passwords before deployment.
Patched versions:
1.5.0 and later
Will be fully patched in v1.7.0 and later

Workarounds
Users can remediate the vulnerability without upgrading by manually changing all default credentials in configuration files before deployment:

# config.yaml
auth:
  default_password: "your_strong_password_here"
# docker-compose.yml
- GF_SECURITY_ADMIN_PASSWORD=your_strong_password

Restrict access to the admin interface and use environment variables for secrets.

References

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-08-19 22:24 UTC
Modified
2025-08-29 20:37 UTC

Affected packages and fixes

github.com/Anipaleja/nginx-defender

Go · All systems

Affected

  • introduced 0, fixed 1.5.0 (semver)

Fixed versions

1.5.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences