Skip to content

[uk-ai-resilience] Tier C: blocked-label check bypass via unnormalised labels (code scanning 1061) #74548

Done

Description

@github-actions

Tier C — Restricted Pending Review

Code scanning alert #1061 (CWE-180, medium): actions/setup/js/safe_output_validator.cjs:105. validateLabels matches blocked/allowed patterns on raw strings before sanitizeLabelContent (NFKC, zero-width/fullwidth stripping), so a variant of a blocked label can become the blocked label after sanitisation, defeating the gating-label control in add_labels.cjs.

Scores: exposure high, patchability high, detectability low, fragility medium, ownership confidence medium.

Remediation: sanitise first, then validate (or re-check after sanitisation); add zero-width/fullwidth tests. SLA: high. Human review for security-control change.

Discussion report: [uk-ai-resilience] Recent-change risk & resilience report 2026-11-03.

Generated by UK AI Operational Resilience · copilot · auto · ~20 AIC · ⌖ ~1 AIC · ⊞ 8.7K · ◷

Activity

  1. github-actions commented on Nov 4, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 13.2K · ◷

  2. linked a pull request that will close this issueNormalize labels before security filtering #74752on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ai-generatedcookiehigh-prioritysecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions