ZAP flagging False Positive Sub resource Integrity missing

30 views
Skip to first unread message

Mustafizur Rahman

unread,
Jul 28, 2026, 7:59:48 AM (7 days ago) Jul 28
to ZAP User Group
Hi,
I have run ZAP on my websites and it flags the following SRI missing risk.
Isn't it a False Positive as we can't add integrity attribute to these kind of dynamic scripts owned by Google?
Also, how do you manage these type of security flags for PCI compliance?

Simon Bennetts

unread,
Jul 31, 2026, 10:26:56 AM (4 days ago) Jul 31
to ZAP User Group

"The integrity attribute is missing on a script or link tag served by an external server. The integrity tag prevents an attacker who have gained access to this server from injecting a malicious content."

It is not a false positive as the integrity attribute really is missing :P
The fact that you cannot add an integrity attribute is a different problem.
A simple workaround is to define Google as a trusted domain: https://www.zaproxy.org/docs/desktop/ui/dialogs/options/ruleconfig/

I don't have to deal with PCI compliance, so can't answer that question :D

Cheers,

Simon

Mustafizur Rahman

unread,
Aug 3, 2026, 9:34:05 AM (19 hours ago) Aug 3
to ZAP User Group
Thank you for the response.
I will use the simple workaround then.

Reply all
Reply to author
Forward
0 new messages