GitHub Advisoryadvisory · PyPI
GHSA-jxgr-gcj5-cqqg nautobot has reflected Cross-site Scripting potential in all object list views
HIGH
Official page ↗
- Aliases
- CVE-2024-32979
- Ecosystem
- PyPI
- Packages
- nautobot
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L
- Weaknesses
- CWE-79
- Reviewed
- 2024-05-01
Affected packages
• PyPI nautobot: >= 1.5.0, < 1.6.20 → fixed in 1.6.20
• PyPI nautobot: >= 2.0.0, < 2.2.3 → fixed in 2.2.3
Description
Impact
It was discovered that due to improper handling and escaping of user-provided query parameters, a maliciously crafted Nautobot URL could potentially be used to execute a Reflected Cross-Site Scripting (Reflected XSS) attack against users. All filterable object-list views in Nautobot are vulnerable, including:
• /dcim/location-types/
• /dcim/locations/
• /dcim/racks/
• /dcim/rack-groups/
• /dcim/rack-reservations/
• /dcim/rack-elevations/
• /tenancy/tenants/
• /tenancy/tenant-groups/
• /extras/tags/
• /extras/statuses/
• /extras/roles/
• /extras/dynamic-groups/
• /dcim/devices/
• /dcim/platforms/
• /dcim/virtual-chassis/
• /dcim/device-redundancy-groups/
• /dcim/interface-redundancy-groups/
• /dcim/device-types/
• /dcim/manufacturers/
• /dcim/cables/
• /dcim/console-connections/
• /dcim/power-connections/
• /dcim/interface-connections/
• /dcim/interfaces/
• /dcim/front-ports/
• /dcim/rear-ports/
• /dcim/console-ports/
• /dcim/console-server-ports/
• /dcim/power-ports/
• /dcim/power-outlets/
• /dcim/device-bays/
• /dcim/inventory-items/
• /ipam/ip-addresses/
• /ipam/prefixes
• /ipam/rirs/
• /ipam/namespaces/
• /ipam/vrfs/
• /ipam/route-targets/
• /ipam/vlans/
• /ipam/vlan-groups/
• /ipam/services/
• /virtualization/virtual-machines/
• /virtualization/interfaces/
• /virtualization/clusters/
• /virtualization/cluster-types/
• /virtualization/cluster-groups/
• /circuits/circuits/
• /circuits/circuit-types/
• /circuits/providers/
• /circuits/provider-networks/
• /dcim/power-feeds/
• /dcim/power-panels/
• /extras/secrets/
• /extras/secrets-groups/
• /extras/jobs/
• /extras/jobs/scheduled-jobs/approval-queue/
• /extras/jobs/scheduled-jobs/
• /extras/job-results/
• /extras/job-hooks/
• /extras/job-buttons/
• /extras/object-changes/
• /extras/git-repositories/
• /extras/graphql-queries/
• /extras/relationships/
• /extras/notes/
• /extras/config-contexts/
• /extras/config-context-schemas/
• /extras/export-templates/
• /extras/external-integrations/
• /extras/webhooks/
• /extras/computed-fields/
• /extras/custom-fields/
• /extras/custom-links/
as well as any similar object-list views provided by any Nautobot App.
Patches
Fixed in Nautobot 1.6.20 and 2.2.3.
Workarounds
No workaround has been identified
References
• #5646
• #5647
Credit to Michael Panorios for reporting this issue.
Related
Alias · CVE (1)
- CVE-2024-32979 Nautobot is a Network Source of Truth and Network Automation Platform built as a web application atop the Django Python framework with a… vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/nautobot/nautobot/security/advisories/GHSA-jxgr-gcj5-cqqg web
- https://nvd.nist.gov/vuln/detail/CVE-2024-32979 advisory
- https://github.com/nautobot/nautobot/pull/5646 web
- https://github.com/nautobot/nautobot/pull/5647 web
- https://github.com/nautobot/nautobot/commit/2ea5797ea43646d5d8b29433e4c707b5a9758146 web
- https://github.com/nautobot/nautobot/commit/42440ebd9b381534ad89d62420ebea00d703d64e web
- https://github.com/nautobot/nautobot package
- https://github.com/nautobot/nautobot/releases/tag/v1.6.20 web
- https://github.com/nautobot/nautobot/releases/tag/v2.2.3 web