Skip to content

Custom fields description allows arbitrary HTML tags #7612

@tombe75

Description

@tombe75

NetBox version

v3.0.8

Python version

3.8

Steps to Reproduce

  1. Add new Custom Field
  2. Set description with a HTML tag, e.g. A<h1>B</h1>C
  3. Assign to arbitrary model, e.g. circuit.
  4. Create a new object of selected model, circuit in this case.
  5. Check Custom Fields section when editing new object.

Expected Behavior

Since custom field creation is moved from admin page and could be available to normal users, I expect it to be sanitized from pure HTML.
(If some customization is needed this could be replaced with Markdown)

Observed Behavior

HTML tags gets evaluated.
bild

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions