Skip to content

Add jitter for heartbeat#22

Closed
danielblando wants to merge 1 commit into
masterfrom
jitter-lifecycler
Closed

Add jitter for heartbeat#22
danielblando wants to merge 1 commit into
masterfrom
jitter-lifecycler

Conversation

@danielblando

Copy link
Copy Markdown
Owner

What this PR does:

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Daniel Deluiggi <[email protected]>
danielblando added a commit that referenced this pull request Jul 7, 2026
cortexproject#7512)

* security: fix stored XSS in alertmanager and storegateway status pages

Replace text/template with html/template in alertmanager_http.go and
gateway_http.go to auto-escape HTML special characters. This prevents
stored XSS via crafted gossip member names rendered on status pages.

The html/template package has an identical API to text/template but
automatically escapes HTML, JS, and URI contexts.

Add TestStatusHandler_HTMLEscaping to verify XSS payloads are escaped.

Fixes #22

Signed-off-by: Daniel Blando <[email protected]>

* Fix lint

Signed-off-by: Friedrich Gonzalez <[email protected]>

* changelog

Signed-off-by: Daniel Blando <[email protected]>

---------

Signed-off-by: Daniel Blando <[email protected]>
Signed-off-by: Friedrich Gonzalez <[email protected]>
Co-authored-by: Friedrich Gonzalez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant