Compliance & Data Privacy
medium Severity
Free Check
Data Leaks in HTML Comments
Inspects HTML source code for un-stripped developer comments (<!-- TODO: ... -->) leaking internal paths or credentials.
Why It Matters
Comments frequently reveal developer names, internal JIRA ticket keys, staging server URLs, or passwords.
How We Check This
We extract all HTML comments <!-- ... --> and analyze them for sensitive keywords and internal network addresses.
How to Fix & Implement
Copy-paste configuration blocks tailored for your web server or edge proxy.
nginx snippet
Enable HTML minification to strip comments in production builds
Frequently Asked Questions
Does HTML minification remove comments?
Yes, standard production bundlers strip all non-conditional HTML comments.