qa-playswag
Audited by Socket on Sep 18, 2026
2 alerts found:
Anomalyx2The code appears to be a legitimate OpenAPI test-coverage analyzer, not malware. It does contain security weaknesses: unsanitized specification and test-derived data in generated HTML and JavaScript can produce stored XSS or malformed report scripts, and unrestricted user-supplied URL fetching can access internal endpoints when used in a permissive environment. Include/exclude patterns are also not regex-escaped. HTML and JavaScript output should be contextually escaped, URL fetching should be restricted or made explicit, and wildcard patterns should be safely escaped. Malware likelihood is very low.
The code does not show clear malicious or supply-chain behavior. It is a legitimate API coverage reporting tool, but generated HTML and inline JavaScript are unsafe when specification or scanned-file-derived values are attacker-controlled. HTML/JavaScript escaping should be added for all dynamic report content, and wildcard patterns should be escaped before regular-expression construction. Remote URL fetching should remain explicitly opt-in and may require SSRF protections in automated environments.