diff --git a/changedetectionio/api/Watch.py b/changedetectionio/api/Watch.py
index 9cb4d721..f6fe24c5 100644
--- a/changedetectionio/api/Watch.py
+++ b/changedetectionio/api/Watch.py
@@ -278,8 +278,20 @@ class WatchSingleHistory(Resource):
if request.args.get('html'):
content = watch.get_fetched_html(timestamp)
if content:
+ # XSS mitigation (GHSA-cgj8-g98g-4p9x): this is an API endpoint, not a
+ # browser-rendered view. The bytes ARE HTML (that's what the caller asked
+ # for) but a programmatic client doesn't need text/html — and serving
+ # text/html lets attacker-planted "
+ "
"
+ "