Skip to content

Commit

Permalink
[Security] Close cross scripting vulnerability (#21342)
Browse files Browse the repository at this point in the history
* close vulnerability

* add changelog
  • Loading branch information
sarahalsmiller authored Jun 17, 2024
1 parent 7a19d2e commit c18c911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/21342.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
agent: removed reflected cross-site scripting vulnerability
```
2 changes: 1 addition & 1 deletion agent/kvs_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func conflictingFlags(resp http.ResponseWriter, req *http.Request, flags ...stri
if _, ok := params[conflict]; ok {
if found {
resp.WriteHeader(http.StatusBadRequest)
fmt.Fprint(resp, "Conflicting flags: "+params.Encode())
fmt.Fprintf(resp, "Conflicting flags: %v\n", params.Encode())
return true
}
found = true
Expand Down

0 comments on commit c18c911

Please sign in to comment.