GHSA-v4xv-795h-rv4h

Suggest an improvement
Source
https://github.com/advisories/GHSA-v4xv-795h-rv4h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-v4xv-795h-rv4h/GHSA-v4xv-795h-rv4h.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-v4xv-795h-rv4h
Aliases
Published
2024-01-23T14:44:22Z
Modified
2024-01-29T22:01:10.706363Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:H/A:L CVSS Calculator
Summary
XSS potential in rendered Markdown fields (comments, description, notes, etc.)
Details

Impact

All users of Nautobot versions earlier than 1.6.10 or 2.1.2 are potentially impacted.

Due to inadequate input sanitization, any user-editable fields that support Markdown rendering, including:

  • Circuit.comments
  • Cluster.comments
  • CustomField.description
  • Device.comments
  • DeviceRedundancyGroup.comments
  • DeviceType.comments
  • Job.description
  • JobLogEntry.message
  • Location.comments
  • Note.note
  • PowerFeed.comments
  • Provider.noc_contact
  • Provider.admin_contact
  • Provider.comments
  • ProviderNetwork.comments
  • Rack.comments
  • Tenant.comments
  • VirtualMachine.comments
  • Contents of any custom fields of type markdown
  • Job class description attributes
  • The SUPPORT_MESSAGE system configuration setting

are potentially susceptible to cross-site scripting (XSS) attacks via maliciously crafted data.

Patches

Fixed in Nautobot versions 1.6.10 and 2.1.2.

References

https://github.com/nautobot/nautobot/pull/5133 https://github.com/nautobot/nautobot/pull/5134

Database specific
{
    "nvd_published_at": "2024-01-23T00:15:26Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-01-23T14:44:22Z"
}
References

Affected packages

PyPI / nautobot

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.1.2

Affected versions

2.*

2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.1.0b1
2.1.0
2.1.1

Ecosystem specific

{
    "affected_functions": [
        "nautobot.utilities.templatetags.helpers.render_markdown"
    ]
}

PyPI / nautobot

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.10

Affected versions

1.*

1.0.0a1
1.0.0a2
1.0.0b1
1.0.0b2
1.0.0b3
1.0.0b4
1.0.0
1.0.1
1.0.2
1.0.3
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.2.10
1.2.11
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.3.7
1.3.8
1.3.9
1.3.10
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.7
1.4.8
1.4.9
1.4.10
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4
1.5.5
1.5.6
1.5.7
1.5.8
1.5.9
1.5.10
1.5.11
1.5.12
1.5.13
1.5.14
1.5.15
1.5.16
1.5.17
1.5.18
1.5.19
1.5.20
1.5.21
1.5.22
1.5.23
1.5.24
1.6.0
1.6.1
1.6.2
1.6.3
1.6.4
1.6.5
1.6.6
1.6.7
1.6.8
1.6.9

Ecosystem specific

{
    "affected_functions": [
        "nautobot.utilities.templatetags.helpers.render_markdown"
    ]
}