Skip to content

Confirm the negative-scoring convention for invalid security headers with Security #556

Closed

Description

@caugner

Description

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.

Related issues and pull requests

Follow-up from review of #498. Related to #410.

Activity

  1. added
    needs triage
    on Jul 15, 2026
  2. self-assigned this
    on Jul 15, 2026
  3. added
    p1
    and removed
    needs triage
    on Jul 15, 2026
  4. caugner commented on Jul 15, 2026

    @caugner
    ContributorAuthor

    I have asked this on the JIRA ticket (Mozilla-internal).

  5. caugner commented on Jul 17, 2026

    @caugner
    ContributorAuthor

    Confirmed with security team (see this JIRA comment, Mozilla-internal).

    tl;dr

    • deduct 5 points when [COOP/COEP] invalid, but
    • don’t deduct points when setting [COOP/COEP] to the “insecure” default value unsafe-none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions