瀏覽代碼

Changelog for #9919

jeremystretch 3 年之前
父節點
當前提交
135543683d
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 0
      docs/release-notes/version-3.2.md
  2. 2 2
      netbox/netbox/tables/columns.py

+ 1 - 0
docs/release-notes/version-3.2.md

@@ -20,6 +20,7 @@
 * [#9884](https://github.com/netbox-community/netbox/issues/9884) - Prevent querying assigned VRF on prefix object init
 * [#9885](https://github.com/netbox-community/netbox/issues/9885) - Fix child prefix counts when editing/deleting aggregates in bulk
 * [#9891](https://github.com/netbox-community/netbox/issues/9891) - Ensure consistent ordering for tags during object serialization
+* [#9919](https://github.com/netbox-community/netbox/issues/9919) - Fix potential XSS avenue via linked objects in tables
 
 ---
 

+ 2 - 2
netbox/netbox/tables/columns.py

@@ -442,9 +442,9 @@ class CustomFieldColumn(tables.Column):
         if self.customfield.type == CustomFieldTypeChoices.TYPE_MULTISELECT:
             return ', '.join(v for v in value)
         if self.customfield.type == CustomFieldTypeChoices.TYPE_MULTIOBJECT:
-            return mark_safe(', '.join([
+            return mark_safe(', '.join(
                 self._likify_item(obj) for obj in self.customfield.deserialize(value)
-            ]))
+            ))
         if value is not None:
             obj = self.customfield.deserialize(value)
             return mark_safe(self._likify_item(obj))