You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Confirm the negative-scoring convention for invalid security headers with Security #556
The scoring tables the Security team provided for COOP/COEP (in #410) only specify 0 and +10 modifiers and do not cover the case of an invalid / unrecognized header value.
However, every existing header test in the codebase already deducts points for an invalid header:
Header
Invalid modifier
Content-Security-Policy
-25
Strict-Transport-Security
-20
X-Frame-Options
-20
Referrer-Policy
-5
X-Content-Type-Options
-5
Cross-Origin-Resource-Policy
-5
For consistency with the closest analogues (CORP, Referrer-Policy), #498 applies -5 to CoepHeaderInvalid and CoopHeaderInvalid.
Motivation
Get explicit sign-off from Security that deducting -5 for an invalid/unrecognized COOP/COEP header is the intended convention (rather than 0), and more generally confirm the penalty magnitudes above are still what Security wants.
Additional details
If Security prefers different values, we should align the affected invalid-header modifiers accordingly.
Activity
caugner commentedon Jul 15, 2026
I have asked this on the JIRA ticket (Mozilla-internal).
caugner commentedon Jul 17, 2026
Confirmed with security team (see this JIRA comment, Mozilla-internal).
tl;dr