CVE-2025-69848
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedNetBox is an open-source infrastructure resource modeling and IP address management platform. A reflected cross-site scripting (XSS) vulnerability exists in versions 2.11.0 through 3.7.x in the ProtectedError handling logic, where object names are included in HTML error messages without proper escaping. This allows user-controlled content to be rendered in the web interface when a delete operation fails due to protected relationships, potentially enabling execution of arbitrary client-side code in the context of a privileged user.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceNetBox versions 2.11.0 through 3.7.x contain a reflected XSS vulnerability in the ProtectedError handling logic. When a delete operation fails due to protected relationships, the object name is reflected into an HTML error message without proper escaping, allowing arbitrary JavaScript execution in a privileged user's browser.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 2.11.0, <= 3.7.8CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed NetBox versionRun 'netbox --version' or check the version file in the NetBox installation directory (e.g., /opt/netbox/netbox/netbox/version.py or via the API at /api/version/)Affected if The installed version falls within 2.11.0 through 3.7.8 (inclusive)
-
Determine if protected relationships existSearch the NetBox codebase for models using on_delete=PROTECT or review database relationships that enforce referential integrity on deletion. Check Django models.py files for ForeignKey/OneToOneField fields with on_delete=PROTECTAffected if Any protected relationships are defined in the NetBox installation, which would trigger ProtectedError on delete attempts
-
Inspect ProtectedError handler codeLocate the exception handler that catches ProtectedError exceptions in NetBox views (typically in views/generic.py or similar). Examine how the object name is passed to the error response templateAffected if The object name from the ProtectedError is directly inserted into the HTML response without escaping (e.g., using {{ object }} instead of {{ object|escape }} in a template)
-
Test delete with protected relationshipAttempt to delete an object that has related objects referencing it with protected delete behavior. For example, try deleting a device that is assigned to a rack or a site that contains devicesAffected if The resulting error page reflects the object name in the HTML without proper sanitization, allowing script injection if the object name contains HTML/JavaScript
A user is affected if they run NetBox version 2.11.0 through 3.7.8, have protected relationships configured, and attempt deletions that trigger ProtectedError with unsanitized object names in the error response.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedThe fix requires modifying the ProtectedError handler to properly escape or sanitize object names before rendering them in HTML error messages. Upgrading to a patched version once available is recommended.
NetBox 3.7.9 or later / latest 3.x stable release
- 1. Backup the current NetBox database and configuration files before proceeding with any upgrade.
- 2. Review the official NetBox upgrade documentation for your current version path.
- 3. Upgrade NetBox to version 3.7.9 or later (or to the latest stable 3.x release).
- 4. After upgrading, verify the ProtectedError messages properly escape HTML characters.
- 5. Test delete operations on objects with protected relationships to confirm the XSS fix is applied.
- 6. Clear any cached data and restart all NetBox services (uwsgi, celery, nginx).
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-69848 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-69848 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data