eval(), and hardcoded API keys or secrets accidentally shipped to the browser where anyone can read them.JavaScript runs directly in a visitor's browser, which means anything written into it — including mistakes — is visible to anyone who opens their browser's developer tools. This module looks for three specific, well-known ways JavaScript quietly introduces risk.
eval() usage — a JavaScript function that executes arbitrary text as code. It's a common vector for injection attacks and is almost always avoidable with safer alternatives.Hardcoded API keys are a surprisingly common and costly mistake — a key meant to stay server-side, pasted into frontend code during development and never removed, can lead to unexpected charges or data exposure once discovered by automated scanners that specifically hunt for this pattern.
Add SRI hashes to third-party script tags, replace eval() with safer alternatives, and move any API keys to server-side code where the browser never sees them — your developer can implement all three directly.
PEKRYON scans your website across 26 modules. We take the time needed for accurate results — no server access needed.
Scan My Website Free → Learn More