Skip to content

Record GHSA-vqwm-jvq2-mfwc and pin its reported cases - #505

Merged
jmanico merged 1 commit into
mainfrom
ghsa-vqwm-docs-and-tests
Sep 22, 2026
Merged

jmanico merged 1 commit into
mainfrom
ghsa-vqwm-docs-and-tests

Conversation

@jmanico

@jmanico jmanico commented Sep 22, 2026

Copy link
Copy Markdown
Member

GHSA-vqwm-jvq2-mfwc was published today. It reports that the first fix for CVE-2025-66021 was incomplete: when a policy allows text in style or script, an allowed element's tag inside that text came through verbatim, so its attribute and URL policies never ran. Release 20260921.1 fixed it in #465 and #472. A CVE ID has been requested and is pending.

This PR records the advisory and adds regression tests now that the advisory and the fixed release are both out, the order AGENTS.md requires.

Docs

  • Adds the advisory to docs/vulnerabilities.md.
  • Changes the CVE-2025-66021 entry to recommend 20260921.1 instead of 20260102.1. The first fix shipped in 20260101.1, and 20260102.1 still passes the reporter's payloads.

Tests (HtmlSanitizerTest)

  • testCVE202566021_17… uses the reporter's policy and payloads for the URL-policy case (src=javascript:), the >-inside-a-quoted-value case, and the attribute case.
  • testCVE202566021_18… covers the reporter's script case.
  • Test Misnested list-item and list elements break lists #7 already covered the attribute case under a noscript policy.

All of the reporter's payloads come through unchanged on 20240325.1, 20260101.1, 20260102.1 and 20260313.1. None do on 20260921.1 or main.

No production code changes.

Testing: ./mvnw clean verify passes on JDK 11 and JDK 17 (702 tests).

🤖 Generated with Claude Code

GHSA-vqwm-jvq2-mfwc, published today, reported the first fix for
CVE-2025-66021 incomplete: an allowed element's tag inside kept style or
script text came through verbatim, so its attribute and URL policies
never ran.  Release 20260921.1 fixed it (#465, #472).

List the advisory in docs/vulnerabilities.md and point the
CVE-2025-66021 entry at 20260921.1, since 20260102.1 is still affected.
Add the reporter's URL, quoted-value and script cases as regression
tests; test #7 already covers the attribute case.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jmanico
jmanico merged commit 2045690 into main Sep 22, 2026
7 checks passed
@jmanico
jmanico deleted the ghsa-vqwm-docs-and-tests branch September 22, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant