Vulnerabilities in pkg:golang/github.com/Anipaleja/nginx-defender

PACKAGE
Advisory Identifier: GHSA-pr72-8fxw-xx22
Advisory Summary

CVE-2025-55740 is a MODERATE (CVSS 6.5) default credentials vulnerability (CWE-1392: Use of Default Credentials) affecting Github.com/Anipaleja/nginx defender libraries in the Go ecosystem. The issue involves default credentials in nginx-defender configuration files. Remediation is available by upgrading affected packages to version 1.5.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/Anipaleja/nginx-defender

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/Anipaleja/nginx-defender. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-pr72-8fxw-xx22 CVE-2025-55740 MODERATE Default Credentials in nginx-defender Configuration Files

CVE-2025-55740 at a Glance

CVE Identifier CVE-2025-55740
GHSA Identifier GHSA-pr72-8fxw-xx22
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-1392: Use of Default Credentials
Affected Product Github.com/Anipaleja/nginx defender
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-55740

To remediate this vulnerability, upgrade all affected Github.com/Anipaleja/nginx defender dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/Anipaleja/nginx-defender fixed: 1.5.0
Upgrade github.com/Anipaleja/nginx-defender to 1.5.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/Anipaleja/nginx-defender

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-55740, inspect your project dependencies for Github.com/Anipaleja/nginx defender:

inspect dependencies for github.com/Anipaleja/nginx-defender

Analyze the terminal output to locate any version of Github.com/Anipaleja/nginx defender in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1392: Use of Default Credentials, where the product uses default credentials (such as passwords or cryptographic keys) for potentially critical functionality. In Github.com/Anipaleja/nginx defender, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact This is a configuration vulnerability affecting nginx-defender deployments. Example configuration files [config.yaml](https://github.com/Anipaleja/nginx-defender/blob/main/config.yaml), [docker-compose.yml](https://github.com/Anipaleja/nginx-defender/blob/main/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: ```yaml # config.yaml auth: default_password: "your_strong_password_here" ``` ```yml # docker-compose.yml - GF_SECURITY_ADMIN_PASSWORD=your_strong_password ``` Restrict access to the admin interface and use environment variables for secrets. ### References - [Security Configuration Guide](https://github.com/Anipaleja/nginx-defender/blob/main/docs/security-config.md) - [Full Security Advisory](https://github.com/Anipaleja/nginx-defender/security/advisories) - [Library README](https://github.com/Anipaleja/nginx-defender/blob/main/lib/README.md) - [README](https://github.com/Anipaleja/nginx-defender/blob/main/README.md)

CVE-2025-55740 Affected Github.com/Anipaleja/nginx defender Versions

1 component(s)
Fixed Versions:
1.5.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/Anipaleja/nginx-defender
Go
< 1.5.0
1.5.0

References

Frequently Asked Questions

What is CVE-2025-55740?
CVE-2025-55740 is a security vulnerability in Github.com/Anipaleja/nginx defender involving Default Credentials in nginx-defender Configuration Files under CWE-1392: Use of Default Credentials.
Which Github.com/Anipaleja/nginx defender versions are affected?
Affected versions include releases prior to 1.5.0 across affected packages: github.com/Anipaleja/nginx-defender.
What version fixes CVE-2025-55740?
Upgrading to 1.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/Anipaleja/nginx-defender affected?
Yes, github.com/Anipaleja/nginx-defender is affected in releases prior to 1.5.0. Upgrade your dependency to 1.5.0 or later.
What is the CVSS score of CVE-2025-55740?
CVE-2025-55740 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2025-55740?
CVE-2025-55740 is classified under CWE-1392: Use of Default Credentials (The product uses default credentials (such as passwords or cryptographic keys) for potentially critical functionality.).
How can I check Go dependencies for CVE-2025-55740?
Run the dependency tree command: 'inspect dependencies for github.com/Anipaleja/nginx-defender'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pr72-8fxw-xx22",
  "modified" : "2025-08-29T20:37:35Z",
  "published" : "2025-08-19T22:24:40Z",
  "aliases" : [ "CVE-2025-55740" ],
  "summary" : "Default Credentials in nginx-defender Configuration Files",
  "details" : "### Impact\nThis is a configuration vulnerability affecting nginx-defender deployments. Example configuration files \n[config.yaml](https://github.com/Anipaleja/nginx-defender/blob/main/config.yaml), [docker-compose.yml](https://github.com/Anipaleja/nginx-defender/blob/main/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.\n\n**Who is impacted?**\nAll users who deploy nginx-defender with default credentials and expose the admin interface to untrusted networks.\n\n### Patches\nThe issue is addressed in v1.5.0 and later.\n\nStartup warnings are added if default credentials are detected.\nDocumentation now strongly recommends changing all default passwords before deployment.\nPatched versions:\n1.5.0 and later\n**Will be fully patched in v1.7.0 and later**\n\n### Workarounds\nUsers can remediate the vulnerability without upgrading by manually changing all default credentials in configuration files before deployment:\n```yaml\n# config.yaml\nauth:\n  default_password: \"your_strong_password_here\"\n```\n\n```yml\n# docker-compose.yml\n- GF_SECURITY_ADMIN_PASSWORD=your_strong_password\n```\nRestrict access to the admin interface and use environment variables for secrets.\n\n### References\n- [Security Configuration Guide](https://github.com/Anipaleja/nginx-defender/blob/main/docs/security-config.md)\n- [Full Security Advisory](https://github.com/Anipaleja/nginx-defender/security/advisories)\n- [Library README](https://github.com/Anipaleja/nginx-defender/blob/main/lib/README.md)\n- [README](https://github.com/Anipaleja/nginx-defender/blob/main/README.md)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/Anipaleja/nginx-defender"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Anipaleja/nginx-defender/security/advisories/GHSA-pr72-8fxw-xx22"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-55740"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Anipaleja/nginx-defender"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3896"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1392" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-19T22:24:40Z",
    "nvd_published_at" : "2025-08-19T20:15:35Z"
  }
}