Sign inGet started
–

deal-with-security-advisory

by paperclipai/paperclip · Security & Compliance

Coordinates confidential GitHub Security Advisory handling, including private-fork fixes, CVE requests, and simultaneous publication with an immediate security release.

Lift · GLM-5.3-flash+25ppdirectional · all models →
89
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP
Claude Haiku 5.5 · GPT-6 Luna — not run yet
Pass-rate Lift+25pp95% CI [−25, +63] · CI includes zero
screen tier · directionalchat harness (v2)
−100pp+100pp

Pass rate with the skill minus without, same tasks, same model.

baseline
50%
with skill
75%
forced
75%
Content Lift forced arm
+25pp [0, +63]
Trigger rate
100%
Trials
24 · 8 tasks
Model
GLM-5.3-flash
Measured
2026-10-15

Content Lift = the skill's instructions injected into the system prompt, so it measures what the content does once loaded, apart from whether the agent chooses to load it. Method →

Embed this score · live badge for your README
SkillzBench badge preview

The badge shows the real benchmark number and updates itself when we re-bench — including the honest states (“did not trigger”, “not benched yet”). All badge options →

Markdown[![SkillzBench](https://skillzbench.com/api/badge/deal-with-security-advisory.svg)](https://skillzbench.com/skills/deal-with-security-advisory)
+ cost/task[![SkillzBench](https://skillzbench.com/api/badge/deal-with-security-advisory.svg?cost=1)](https://skillzbench.com/skills/deal-with-security-advisory)
HTML<a href="https://skillzbench.com/skills/deal-with-security-advisory"><img src="https://skillzbench.com/api/badge/deal-with-security-advisory.svg" alt="SkillzBench benchmark" height="20"></a>

A/B outputs — median trial per arm

Chat harness (v2): the agent's final message without the skill (left) vs with it (right).

deal-with-security-advisory--m1
baseline · 0.85

Triage & Remediation Plan — GHSA-7v4p-8h3m-9q2r (Paperclip SQL injection)

Step 1: Validate the report (first thing to do)

  1. Reproduce privately. In a local/staging environment, send crafted q payloads (e.g., ' OR 1=1 --, time-based payloads like '; WAITFOR DELAY '0:0:5' --) against the search endpoint. Confirm whether the parameter is actually concatenated into a SQL string.
  2. Inspect the code. Locate the search handler; look for string interpolation/formatting into a query vs. parameterized queries or an ORM where clause. Check whether any sanitization/allow-listing exists.
  3. Confirm affected range. Test against 1.4.1 (or latest) and, if feasible, an older release to validate "all < 1.4.2." Also check whether the vulnerable code path exists in every release or was introduced later — the advisory range may need narrowing.
  4. Assess exploitability & impact. What data is reachable via the search query? Read-only vs. stacked queries? Does auth gate the endpoint? This drives severity confirmation (high seems plausible if unauthenticated).
  5. Check for active exploitation in logs (odd q values, error-based or time-based patterns) before disclosure widens.

Step 2: Contain while patching

  • If exploitation is confirmed or risk is acute, deploy a mitigation: WAF rule blocking SQLi patterns on q, input validation/allow-list, or temporarily disabling the search endpoint.
  • Keep the report confidential; coordinate with the reporter on a timeline (typical 90-day window).

Step 3: Fix

  • Replace concatenation with parameterized queries (prepared statements / ORM bindings). If q supports dynamic sorting/filtering, allow-list column/order tokens rather than interpolating them.
  • Add regression tests: injection payloads must not alter query semantics; assert bound parameters are used.
  • Audit the codebase for the same pattern elsewhere (other endpoints, other params).

Step 4: Private fork workflow (GitHub security advisory flow)

  1. In the repo's Security tab → Advisories, create a draft security advisory (this auto-enables private fork access for the fix).
  2. Collaborate with maintainers/reporter in the private fork — develop, test, and CI the fix without public visibility.
  3. Prepare patched release 1.4.2 in the private fork; draft release notes and the advisory text (description, CVSS, affected range >= 0, < 1.4.2, patched version, workarounds, credits to reporter).
  4. Request a CVE from the draft advisory if one isn't already assigned.

Step 5: Coordinated disclosure

  1. Agree on a publish date with the reporter.
  2. Publish 1.4.2 and the advisory simultaneously (GitHub can publish the advisory and notify watchers; also consider GitHub Dependabot alerts auto-notifying downstream users).
  3. Post release notes/changelog entry; credit the reporter.
  4. If the package is on a registry (npm/PyPI/RubyGems), publish there and, if applicable, submit the advisory to the registry's DB (e.g., GitHub Advisory Database syncs automatically; OSV mirrors it).

Step 6: Follow-up

  • Monitor for follow-up reports/variants (e.g., second-order injection).
  • Backport the fix to any still-supported older branches if applicable.
  • Add linting/CI checks (e.g., bandit/semgrep rules for string-built SQL) to prevent recurrence.

Immediate next action: reproduce the injection and confirm the vulnerable code path — everything else (severity, range, timeline) hinges on that validation.

with skill · 0.91

Here's the triage and roadmap, following our security advisory process:

First steps (do now)

  1. Fetch the full advisory details to understand the exact attack vector before touching code:

    gh api repos/paperclipai/paperclip/security-advisories/GHSA-7v4p-8h3m-9q2r
    

    Read the description, CVSS, and affected versions. Confirm the q parameter concatenation claim against the actual search endpoint code.

  2. Acknowledge the reporter (human step — the advisory thread has no comment API). Post on the private thread:

    Thanks for the report, @reporter. We've confirmed the issue and are working on a fix. We're targeting a patch release within [timeframe, e.g., 7 days]. We'll keep you updated here.

Roadmap: private fork → public advisory

Phase 1 — Private fork (all development happens here, nothing public):

  • Create the temporary private fork:
    gh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-7v4p-8h3m-9q2r/forks
    
  • Clone it outside ~/paperclip (dev server runs off master — don't touch it), branch security-fix (generic name — nothing that leaks "SQL injection" or "search").

Phase 2 — Develop and validate the fix:

  • Reproduce the injection first using the reporter's description, then patch (parameterized query / ORM binding for q — no string concatenation).
  • Check adjacent vectors: other endpoints or parameters with the same unsafe-concatenation pattern.
  • Run tests locally — CI does not run on temporary private forks.
  • Keep the diff minimal and focused; no new dependencies; no lockfile commits.
  • Push to the private fork with a neutral commit message ("Fix security vulnerability").

Phase 3 — Reporter coordination (human step):

  • Notify the reporter the fix is ready for review in the private fork before publishing.

Phase 4 — CVE request:

  • gh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-7v4p-8h3m-9q2r/cve
    
    GitHub is a CNA; assignment is automatic (may take a few hours to propagate).

Phase 5 — Simultaneous publication (zero-gap, do not stagger):

  1. Verify reporter credit (credits field); add them as reporter type if missing.
  2. PATCH the advisory: state: "published", vulnerable_version_range: "< 1.4.2", patched_versions: "1.4.2". This publishes the GHSA, merges the private fork, and triggers CVE assignment.
  3. Immediately cut release v1.4.2 on the public repo with security-release notes, advisory link, credit, and upgrade guidance.

Phase 6 — Post-publication verification:

  • Confirm advisory state/CVE/published_at and that the release exists.
  • Human posts a final thank-you/confirmation comment on the advisory thread.

Key confidentiality rules throughout: no vulnerability details in public commits, branch names, PRs, or channels; everything stays in the private fork until publication; the goal is zero window between public disclosure and the fix being available.

Want me to start by fetching the advisory details and creating the private fork?

deal-with-security-advisory--m2
baseline · 0.67

Patch Release & Advisory Plan — Paperclip XSS (GHSA-9c2m-hx4r-5v7p)

1. Overview

  • Vulnerability: Stored XSS in the comment renderer
  • Affected versions: 1.4.0 – 1.5.1
  • Fix branch: fix/xss-comment-renderer (private fork)
  • Target release: 1.5.2 (patch bump — no API changes, so no minor/major bump needed)

2. Version Bump

  1. On the fix branch, bump the version to 1.5.2:
    • Update the version constant/metadata file (e.g., version.rb, package.json, pyproject.toml — wherever it lives in this codebase).
    • Do not bump on the private fork's default branch in a way that leaks intent; keep the bump commit on the fix branch until publication.
  2. Tag the release only after the advisory is staged and you're ready to publish (see §6 for ordering). Use a signed tag: git tag -s v1.5.2 -m "v1.5.2: fix stored XSS in comment renderer (GHSA-9c2m-hx4r-5v7p)".

3. Changelog Entry

Add to CHANGELOG.md under a new ## 1.5.2 (unreleased) heading — keep it vague until publication:

## 1.5.2

### Security
- Fixed a stored XSS vulnerability in the comment renderer.
  Reported as GHSA-9c2m-hx4r-5v7p. All users on 1.4.0–1.5.1 should upgrade.
  Thanks to [reporter name] for responsible disclosure.

Avoid describing the attack vector or the specific sanitization gap in the changelog until the advisory is live — the changelog often gets scraped by bots watching for CVE/GHSA keywords.

4. Fix Verification Checklist

Before merging/releasing:

  • Escape/sanitize comment output at render time (output encoding, not input filtering alone).
  • Add regression tests: <script>, onerror=/onload= attributes, javascript: URIs, encoded payloads (&#x3C;), and nested/malformed HTML.
  • Run the full test suite plus any security-focused linting (e.g., brakeman/semgrep if applicable).
  • Confirm the fix doesn't break legitimate formatting features users rely on.
  • Check whether other render paths (emails, previews, feeds) share the same template/helper — patch those too or file follow-ups.

5. Advisory Drafting (do this in parallel, publish last)

  1. Draft the GHSA advisory in the GitHub Security Advisory (private, via "Security advisories" on the repo) — private forks and private advisories keep it embargoed.
  2. Content to include:
    • Title: Stored XSS in Paperclip comment renderer
    • Affected range: >= 1.4.0, <= 1.5.1
    • Patched version: 1.5.2
    • Severity: CVSS — stored XSS typically lands around Medium/High (6.1–8.0) depending on privileges required to inject. Compute via the GHSA CVSS calculator.
    • Credits: reporter (with their consent on attribution level).
    • Workarounds: if any exist (e.g., disabling comments, strict CSP mitigations).
  3. Request a CVE ID through the GHSA flow (GitHub is a CNA) if one hasn't been assigned.
  4. Prepare the public announcement text (release notes, blog post, mailing list) but do not post it.

6. Avoiding Premature Disclosure — Publication Order

The cardinal rule: the fix must be public before the vulnerability details are.

Recommended sequence:

  1. Freeze the embargo window. Agree with the reporter on a disclosure date (commonly 90 days from report, or sooner if actively exploited).
  2. Merge the fix into the private fork and prepare the release artifact.
  3. Publish the release + tag + changelog + advisory simultaneously (or release first, advisory seconds later). Never the reverse.
    • Use GitHub's "publish advisory" only after the patched version is downloadable.
    • If your package registry (npm/RubyGems/PyPI) publishes faster than the repo mirror, that's fine — code availability is what matters.
  4. Then publish details: full advisory text, CVE, blog post, social/mailing list.
  5. Notify downstreams: distro packagers, major integrators under embargo if you have a security contact list — give them a few days' head start under NDA/embargo, not publicly.
  6. Monitor for forks/PRs referencing the fix branch before publication — keep the private fork truly private (no public PRs, no public CI logs that echo branch names or diff content).

7. Common Pitfalls

  • Public PR referencing the GHSA ID — this auto-unpublishes your embargo. Reference it as "security fix" in any pre-publication commit messages.
  • CI logs on public repos showing the diff or branch name.
  • Tagging/pushing the version bump early — package bots may auto-open PRs or changelog scrapers may pick it up.
  • Registry auto-publish on tag — make sure the release pipeline doesn't publish 1.5.2 before you intend.

8. Post-Publication

  • Confirm the advisory renders correctly on GHSA/CVE databases.
  • Backport if 1.4.x is still supported on a separate LTS line (release 1.4.x patch as needed).
  • Thank the reporter publicly (with permission) and consider a bounty if you run one.
  • Do a short retrospective: how did the XSS slip past review, and can you add renderer-level tests to CI permanently?

If you share the actual diff or the codebase's release tooling (Makefile targets, CI config), I can tailor the exact commands and changelog format.

with skill · 0.85

Here's the full runbook for GHSA-9c2m-hx4r-5v7p (stored XSS in the comment renderer, affects 1.4.0–1.5.1). One important correction up front:

⚠️ Branch name issue

Your branch fix/xss-comment-renderer leaks the vulnerability class in its name. Until publication, everything must be non-descriptive. Rename it in the private fork:

git branch -m security-fix

All work must live in the temporary private fork (created via the advisory's "private fork" feature), never on the public repo. If you've already pushed that branch anywhere public, delete it immediately.

Step 0 — Confirm advisory details

gh api repos/paperclipai/paperclip/security-advisories/GHSA-9c2m-hx4r-5v7p

Verify description, severity, CVSS, and that the affected range reads >= 1.4.0, <= 1.5.1.

Step 1 — Acknowledge the reporter (human step)

Post on the private advisory thread:

Thanks for the report. We've confirmed the issue and are working on a fix. We're targeting a patch release within [timeframe, e.g., 7 days]. We'll keep you updated here.

Step 2 — Private fork

gh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-9c2m-hx4r-5v7p/forks

Clone the returned fork, apply your fix on security-fix. Note: CI does not run on private forks — run the full test suite locally, including a reproduction of the XSS payload before and after the patch. Check adjacent render paths for the same escaping gap. Keep the diff minimal; no new dependencies; don't commit lockfile churn.

Step 3 — Reporter review (human step)

Invite the reporter to review the fix in the private fork before release.

Step 4 — Request a CVE

gh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-9c2m-hx4r-5v7p/cve

Step 5 — Version bump & changelog (in the private fork)

  • Bump to 1.5.2 (patch release; no API changes).
  • Changelog entry should be written but not pushed publicly — it goes out with the merge. Keep it factual but not exploit-ready: "Fixed: stored XSS in comment renderer (GHSA-9c2m-hx4r-5v7p). Thanks to @reporter for responsible disclosure." Don't include a working payload in the changelog.
  • Commit message: generic, e.g. Fix security vulnerability in comment rendering — no "XSS" in any public-facing commit message.

Step 6 — Simultaneous publication (zero-gap window)

Do these in one sitting, in this order:

  1. Verify reporter credit:

    gh api repos/paperclipai/paperclip/security-advisories/GHSA-9c2m-hx4r-5v7p --jq '.credits'
    

    Add the reporter as type: "reporter" via PATCH if missing.

  2. Publish the advisory + merge the fork (this makes the GHSA public, merges the private fork into the repo, and triggers CVE assignment):

    gh api --method PATCH repos/paperclipai/paperclip/security-advisories/GHSA-9c2m-hx4r-5v7p \
      --input - << 'EOF'
    {
      "state": "published",
      "vulnerabilities": [
        {
          "package": {"ecosystem": "npm", "name": "paperclip"},
          "vulnerable_version_range": ">= 1.4.0, < 1.5.2",
          "patched_versions": "1.5.2"
        }
      ]
    }
    EOF
    
  3. Cut the release immediately:

    cd ~/paperclip && git pull origin master
    gh release create v1.5.2 --repo paperclipai/paperclip \
      --title "v1.5.2 — Security Release" \
      --notes "## Security Release
    This release fixes a security vulnerability in the comment renderer.
    ### Advisory
    https://github.com/paperclipai/paperclip/security/advisories/GHSA-9c2m-hx4r-5v7p
    ### Credit
    Thanks to @<reporter> for responsibly disclosing this vulnerability.
    ### Action required
    All users on 1.4.0–1.5.1 should upgrade to 1.5.2 immediately."
    

How to avoid premature disclosure

  • Nothing about the vulnerability on the public repo until Step 6: no descriptive branch names, commit messages, PR titles, issues, or changelog pushes.
  • Keep the fix and version bump confined to the private fork; the merge happens atomically with advisory publication.
  • Don't stagger publish → release; the fix must be installable the moment the advisory is readable.
  • Don't discuss specifics in public channels or with anyone outside the advisory thread.

Step 7 — Post-publication verification

gh api repos/paperclipai/paperclip/security-advisories/GHSA-9c2m-hx4r-5v7p --jq '{state, cve_id, published_at}'
gh release view v1.5.2 --repo paperclipai/paperclip

CVE assignment can lag a few hours — that's normal. Finally, have a human post a closing comment on the advisory thread thanking the reporter.

Want me to draft the exact changelog text and release notes for 1.5.2?

deal-with-security-advisory--m3
baseline · 0.67

Here's a sequencing plan for the Paperclip advisory (GHSA-m3p2-8q7w-6v4r) that keeps the embargo intact through publication.

1. CVE acquisition (do this first — it's the slowest external dependency)

  • Request a CVE from GitHub's advisory database: when you draft the GitHub Security Advisory (GHSA) in the repo's Security → Advisories tab, check "Request CVE ID" — GitHub assigns one automatically and it stays private until you publish.
  • If you already have the GHSA ID but no CVE, request via MITRE or GitHub's CNA service now; 7 days is enough lead time, but don't wait.
  • Draft the advisory content early (affected versions, patched versions, CVSS, description of both vectors) so publication day is just a button press.

2. Branch and fix hygiene (today)

  • Keep fix/rce-upload and fix/auth-bypass-session private — in a private repo or a private fork. Do not push to any public remote, even force-pushed "hidden" branches; anything ever pushed to a public repo can be cached/forked.
  • Confirm no CI logs, PR references, or commit messages leak details publicly.
  • Write regression tests on each branch that fail on 1.4.0–1.6.0 and pass with the fix.

3. Backport sequencing

Work in this order so merges are clean and reviewable:

  1. Freeze the fix commits on the two private branches; get them reviewed now.
  2. Backport to 1.6.x first (closest to mainline, least conflict risk): cherry-pick each fix onto 1-6-stable, verify tests.
  3. Backport to 1.5.x, resolving conflicts introduced by API drift.
  4. Backport to 1.4.x last — expect the most divergence (older upload/session APIs); budget the most review time here.
  5. Tag the patch releases locally in the private repo but don't push tags until publication: e.g. v1.6.1, v1.5.3, v1.4.9 (or whatever your numbering scheme is — patch bumps on all three lines).
  6. If both fixes ship in the same release, consider merging both branches into a single release branch per line to avoid double releases; otherwise keep them separate and note both CVE vectors in one advisory.

4. Pre-publication checklist (day 5–6)

  • Dry-run the release pipeline (gem/package build) from the private repo so publication day is mechanical.
  • Prepare:
    • Advisory text with CVE, affected range >= 1.4.0, <= 1.6.0, patched versions per line.
    • Upgrade notes for users pinned to old minors.
    • Credit for reporters, if applicable.
  • Optionally notify major downstream packagers/distributions under embargo (e.g., distro security teams) if your policy allows coordinated disclosure.

5. Publication day (embargo end)

Execute in this exact order to minimize the exploit window:

  1. Push patched commits and tags to the public repo.
  2. Publish the GitHub Security Advisory (this publishes the CVE simultaneously and credits the GHSA).
  3. Publish the release artifacts (gem/package) — do this immediately after the advisory so users upgrading aren't fetching from a publicized-vulnerable version with no fix available.
  4. Update the changelog/release notes linking the advisory.
  5. Monitor for forks/scanners picking up the diff; be ready to answer reports.

Key embargo rules

  • Nothing public until the advisory publishes: no tags, no release candidates, no "fix incoming" comments in public issues.
  • If a leak occurs, move publication up immediately rather than holding to the original date.
  • If you need more time, coordinate an extension with the reporter and any other parties under embargo — don't let the date slip silently.

Want me to help draft the advisory text or the cherry-pick plan for a specific 1.4.x conflict?

with skill · 0.85

Here's the sequencing plan for GHSA-m3p2-8q7w-6v4r, adapted to your two-component situation and 7-day embargo:

Day 0–1: Setup and confirmation

  1. Fetch the advisory to confirm scope, severity, and CVSS for both vectors:
    gh api repos/paperclipai/paperclip/security-advisories/GHSA-m3p2-8q7w-6v4r
    
  2. Acknowledge the reporter (human step — post on the private advisory thread) with the acknowledgment template, targeting release within 7 days.
  3. Create the temporary private fork (if not already done):
    gh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-m3p2-8q7w-6v4r/forks
    
    All fix work stays there. Nothing goes to the public repo, and no branch/commit names should leak details ("RCE", "auth bypass", etc.) — use generic names like security-fix.

Day 1–3: Fix development and backports

Since you already have fix/rce-upload and fix/auth-bypass-session on the private fork, treat those as your mainline (1.6.x) fixes and build backports from them:

  1. Validate mainline fixes first. CI does not run on private forks, so run the full test suite locally. Reproduce each vector (RCE via upload endpoint, auth bypass via session handler) before the patch, then confirm the patch closes it. Check for adjacent vectors — e.g., other upload paths or session fixation/handling code with the same flaw.
  2. Create backport branches off each affected release line:
    • security-fix-1.5 ← cherry-pick both fixes onto 1.5.x
    • security-fix-1.4 ← cherry-pick both fixes onto 1.4.x
    • Backports may need adaptation (API/dependency differences) — re-run tests per branch. Keep each patch minimal; no unrelated changes, no new dependencies.
  3. Order of merge readiness: RCE fix first (higher severity, likely CVSS 9+), then auth bypass — but publish both in the same coordinated release (see below) so attackers can't pivot from a patched RCE to an unpatched auth bypass or vice versa.

Day 3–5: Review and CVE

  1. Invite the reporter to review the fixes in the private fork (human step, template in the advisory thread).
  2. Request the CVE now, not at publication:
    gh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-m3p2-8q7w-6v4r/cve
    
    Requesting early avoids CVE propagation lag after publication. The CVE ID stays private until the advisory publishes — this does not break the embargo.
  3. Prepare release artifacts in advance: version bumps, changelog entries (drafted but uncommitted publicly), release notes, and upgrade guidance for 1.4.x/1.5.x/1.6.x users.

Day 6–7: Coordinated publication (zero-window)

Do all of this simultaneously — do not stagger:

  1. Verify reporter credit on the advisory (credits field; PATCH to add if missing).
  2. Publish the advisory with both vulnerability entries in one PATCH:
    {
      "state": "published",
      "vulnerabilities": [
        {"package": {"ecosystem": "npm", "name": "paperclip"},
         "vulnerable_version_range": ">= 1.4.0, < 1.6.1",
         "patched_versions": "1.4.1, 1.5.1, 1.6.1"}
      ]
    }
    
    (Adjust ranges/patched versions to your actual release numbers; you may list two entries — one per component — if they warrant separate CVSS scoring.)
  3. Merge the private fork (publishing triggers this) and cut releases immediately for 1.6.1, 1.5.1, and 1.4.1 with security release notes linking the advisory and crediting the reporter.
  4. Post-publication verification: confirm advisory state, CVE assignment (can lag a few hours), and that all three releases exist.

Key embargo rules

  • Nothing about the vulnerability appears in public commits, branches, PRs, or channels until publication.
  • The private fork, CVE request, and backport branches are all private — safe under embargo.
  • The only public-visible moment is the simultaneous publish + release; have everything staged so the window is minutes, not hours.
  • After publication, post a final comment on the advisory thread thanking the reporter (human step).

Want me to draft the exact gh api commands with your real patched version numbers and the backport cherry-pick sequence?

deal-with-security-advisory--m4
baseline · 0.76

Fastest Safe Path: Private Fork → Coordinated Public Patch

Today's timeline (condensed, safe version)

1. Lock down the private fork (now)

  • Confirm fix/pdf-rce-emergency is on the private fork only — never pushed to the public repo, even to a "hidden" branch. GitHub security advisories (GHSA) private forks / CVE requests are the correct channel; a public branch name like fix/pdf-rce-emergency is itself a disclosure risk.
  • Restrict fork access to the minimal set of people (release manager, fix author, legal reviewer).
  • Audit commit messages and PR descriptions on the branch — they must not describe the vulnerability in exploitable detail. Use neutral wording ("address issue in PDF export pipeline") until publication.

2. Verify the fix before release

  • Add a regression test that fails on vulnerable versions and passes on the fix (test in private repo; publish it with the release).
  • Fuzz/verify the specific RCE vector is closed, and check for adjacent vectors (e.g., other export formats, path traversal in the same code path).
  • Confirm the fix doesn't break the public API — if it does, document the breaking change now.

3. Prepare everything in parallel (before publishing)

  • Version bump: 2.0.3 in the private fork, ready to tag.
  • Changelog entry: written but embargoed. Include CVE/GHSA ID, severity (CVSS), affected versions (< 2.0.3), and a short description without a working exploit.
  • Security advisory draft: on GitHub (Security → Advisories → draft, which stays private and lets you request a CVE if not already assigned — GHSA-2v5r-9p3m-8x1w appears assigned already). Include:
    • Reporter credit (get their explicit written consent on the exact name/handle/link they want — some prefer anonymity until publication).
    • Credit wording approved by the reporter before release day.
  • Legal statement: legal reviews the advisory language (no admission of negligence beyond standard disclosure norms, no unapproved promises, correct credit attribution). Get sign-off in writing today.
  • Upgrade guidance: "Upgrade to 2.0.3 immediately. If you cannot, [mitigation — e.g., disable PDF export / block the affected endpoint]." A mitigation is important since exploitation is active.
  • Publishing checklist: package artifacts built and checksummed in advance so publication is a single atomic step.

4. Coordinated disclosure sequence (the "flip the switch" moment)

  1. Merge fix/pdf-rce-emergency → main on the private fork.
  2. Publish the GitHub advisory (this makes GHSA/CVE public) — do this first or simultaneously with the release, never after, so scanners and the reporter's credit are correct from minute one.
  3. Push tag + release 2.0.3 to the public repo and package registry (npm/PyPI/etc.) in the same window.
  4. Publish the changelog, legal statement, and mitigation guidance (blog post / GitHub release notes / mailing list).
  5. Notify the reporter privately ~24h ahead with the exact publication time so they can prepare their own writeup.
  6. Update downstream: dependents, issue tracker (open a public issue referencing the GHSA), and any pinned-version docs.

5. Post-release (within 24–48h)

  • Monitor for exploit attempts against unpatched users; consider backporting to the last LTS/minor line if you support one.
  • Thank the reporter publicly (with their approved credit) and consider a bounty if you have a program.
  • Postmortem: how did the RCE land, and why didn't CI/security testing catch it — feed into the PDF export feature's test coverage.

Key don'ts

  • ❌ Don't push the branch, PR, or fix commits to the public repo before publication.
  • ❌ Don't publish the release before the advisory (or vice versa with a gap) — a patch without an advisory invites diff-based exploit development; an advisory without a patch leaves users exposed.
  • ❌ Don't publish the reporter's name without written consent.
  • ❌ Don't include a proof-of-concept in the advisory unless you've decided that's your policy — for an actively exploited RCE, a minimal description + immediate patch is safer.

Realistic minimum: if the fix is tested and legal/reporter sign-off is in hand, this can be done in a single working day — prep in the morning, coordinated publish in one window in the afternoon.

with skill · 1.00

Here's the fastest safe path, following the advisory-response workflow. Everything below stays confidential until publication.

Phase 1 — Now (confidential)

  1. Acknowledge the reporter (human step): post on the GHSA-2v5r-9p3m-8x1w private thread:

    Thanks for the report — we've confirmed the issue and are working on a fix, targeting a patch release today. We'll keep you updated here.

  2. Verify the private fork state. If the fix already lives on fix/pdf-rce-emergency in the temporary private fork, that's fine — but note CI does not run on private forks, so run the full test suite locally against that branch before anything else. Also verify the fix closes the reported vector and check adjacent vectors in the PDF export path (same sanitizer/parser class of bug elsewhere).
  3. Keep everything generic: no branch names, commit messages, or PR titles that mention PDF/RCE. Use security-fix and "Fix security vulnerability" if you need to re-commit or rebase.
  4. Request the CVE now (it can lag publication by hours, so start it early):
    gh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-2v5r-9p3m-8x1w/cve
    
  5. Prepare the legal statement in parallel (human/legal step): draft the coordinated-disclosure statement and credit language now so it's ready to drop into the release notes and advisory at publish time — don't let legal review block the release clock.

Phase 2 — Pre-publication (still confidential)

  1. Give the reporter a review window (even a few hours given active exploitation — if they don't respond, proceed; active exploitation justifies a shortened embargo):

    @reporter — fix is ready in the private fork if you'd like to review before we publish. Planning to release today.

  2. Add reporter credit to the advisory (verify first with --jq '.credits', then PATCH if missing):
    gh api --method PATCH repos/paperclipai/paperclip/security-advisories/GHSA-2v5r-9p3m-8x1w \
      --input - << 'EOF'
    {"credits": [{"login": "<reporterHandle>", "type": "reporter"}]}
    EOF
    
  3. Pre-stage the release notes (v2.0.3) including the legal statement, credit, and "upgrade immediately" guidance — but do not publish anything yet.

Phase 3 — Publication (all at once, zero window)

  1. Publish the advisory with the patched version range in a single PATCH:
    gh api --method PATCH repos/paperclipai/paperclip/security-advisories/GHSA-2v5r-9p3m-8x1w \
      --input - << 'EOF'
    {
      "state": "published",
      "vulnerabilities": [{
        "package": {"ecosystem": "npm", "name": "paperclip"},
        "vulnerable_version_range": "< 2.0.3",
        "patched_versions": "2.0.3"
      }]
    }
    EOF
    
    This simultaneously makes the GHSA public, merges the private fork into the repo, and triggers CVE assignment.
  2. Immediately cut the release (seconds after, not hours):
    cd ~/paperclip && git pull origin master
    gh release create v2.0.3 --repo paperclipai/paperclip \
      --title "v2.0.3 — Security Release" --notes "<pre-staged notes>"
    
  3. Publish the legal statement in the same window (release notes + advisory + any blog/notice), so there's no gap where the vuln is public but the statement isn't.

Phase 4 — Post-publication

  1. Verify:
    gh api repos/paperclipai/paperclip/security-advisories/GHSA-2v5r-9p3m-8x1w --jq '{state, cve_id, published_at}'
    gh release view v2.0.3 --repo paperclipai/paperclip
    
    CVE may take a few hours to appear — that's normal.
  2. Human step: post a final comment on the advisory thread confirming publication and thanking the reporter.

Key rules throughout: nothing about the vulnerability goes to any public branch, commit, or channel until step 9; tests run locally since CI won't run on the private fork; and steps 9–11 happen simultaneously to eliminate the exploit window.

deal-with-security-advisory--m5
baseline · 0.85

Triage: GHSA-4f6g-7h8j-9k0l — Paperclip Stored XSS in Filename Sanitization

Severity Rating

High (CVSS ~8.0–8.6) — assuming the XSS executes in an authenticated context where other users can view uploaded filenames.

  • Vector (estimated): CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
  • If the filename renders in admin-only views or privileged dashboards, this can escalate toward Critical (attacker-to-admin XSS is a classic session/privilege escalation path).
  • No CVE yet does not reduce severity — GHSA IDs are fully actionable, and CVE assignment often lags.

Exploitability Assessment

High exploitability:

FactorAssessment
Attack vectorNetwork, low complexity — attacker controls the upload filename
Privileges requiredLow — any user who can upload an attachment
User interactionRequired — a victim must view a page rendering the filename
ScopeChanged — XSS executes in the app's origin, enabling session theft, CSRF bypass, keylogging
PoC availableYes — external researcher, so exploitation is likely to be reproduced publicly
Affected range6.0.0 – 7.1.2 (wide; most deployed installs likely affected)

Key risk multipliers: stored (persistent) payload, filenames are frequently rendered in listings/notifications/emails, and attackers often target admin review queues where filenames are displayed.

Affected Components

  • Component: Paperclip attachment upload handling — filename sanitization logic
  • Affected versions: 6.0.0 through 7.1.2 (inclusive)
  • Attack surface: Any code path that (a) accepts user-supplied filenames on upload, and (b) renders the original filename without output encoding — file listings, attachment previews, email templates, admin panels, API responses consumed by SPAs.
  • Note: Verify whether your app renders attachment.original_filename / stored filename anywhere — that's the sink, not just the upload path.

First Three Concrete Steps This Week

  1. Confirm exposure and inventory usage (Day 1–2): Determine whether you're on an affected version (6.0.0–7.1.2) and grep your codebase/templates for every place the uploaded filename is rendered or returned via API. Document which of those sinks use proper output encoding for the template engine in use.

  2. Deploy mitigations (Day 2–4): Apply the fix per the advisory (upgrade to the patched version when published, or the advisory's recommended workaround). If no patch is live yet, add server-side filename sanitization/allowlisting on ingest (strip HTML/script metacharacters, enforce safe filename patterns) and ensure all rendering sinks HTML-encode filenames. Add a regression test using the researcher's PoC.

  3. Coordinate disclosure and tracking (Day 3–5): Acknowledge the researcher, request a CVE via GitHub's advisory process (GitHub can request one on your behalf), set a target patched-release date, and prepare the published advisory with affected range, patch commit, and workaround. Internally, open a tracking ticket with the severity rating above and notify downstream users/customers if you distribute builds.

Bonus (cheap, do in parallel): Audit whether filenames are included in emails or logs unescaped — email HTML rendering is a commonly missed sink for this class of bug.

with skill · 1.00

Triage: GHSA-4f6g-7h8j-9k0l — Stored XSS in attachment filename sanitization

Severity rating: High (CVSS ~8.0–8.8, suggest 8.1)

  • Stored XSS in a file-upload path is typically High, not Critical, because it requires an attacker to upload a crafted attachment (authenticated action in most setups).
  • If Paperclip is often deployed in multi-tenant or admin-review contexts where other users view filenames, impact skews higher (session theft, privilege escalation via admin CSRF).
  • Suggested vector string: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N → 8.1 High. Adjust PR:L→PR:N if uploads are possible unauthenticated.

Exploitability assessment

  • Attack vector: Network, low complexity — a malicious filename (e.g., containing <script> or "><img onerror=...> payloads) that survives sanitization and is rendered unescaped wherever filenames are displayed (attachment lists, admin panels, emails, alt text).
  • Prerequisites: ability to upload an attachment; a victim must view a page rendering the filename (user interaction required).
  • Persistence: stored — payload executes for every viewer until cleaned up, so blast radius is all users who see the attachment, not just the uploader.
  • Reporter has a working PoC, so exploitability is confirmed, not theoretical. Assume active scanning once published.

Affected components

  • Filename sanitization/normalization logic in the upload pipeline (versions 6.0.0 – 7.1.2).
  • Any rendering path that outputs attachment filenames without context-aware escaping — check templates, JSON API responses consumed by frontends, and email/notification templates.
  • Adjacent risk: same sanitization may be reused for content_type, metadata, or alt-text fields — audit those too.

First three concrete steps this week

  1. Reproduce and scope (Day 1–2): Pull the advisory details (gh api repos/paperclipai/paperclip/security-advisories/GHSA-4f6g-7h8j-9k0l), reproduce the PoC locally against 7.1.2, and grep the codebase for every place filenames are stored/rendered to map the full affected surface.
  2. Start the private fix (Day 2–4): Create the temporary private fork via the security-advisory forks API, branch security-fix, implement a minimal sanitization/escaping fix (validate/normalize filenames at ingest, escape at output), run the test suite locally (CI won't run on the private fork), and verify the PoC no longer executes.
  3. Coordinate disclosure logistics (this week): Acknowledge the reporter on the advisory thread with a target patch-release timeframe, request a CVE via the advisory CVE endpoint so scanners pick it up, and line up the simultaneous publish + patched release (e.g., 7.1.3) so there's zero gap between public disclosure and a fix being available.

Keep everything confidential until publication — no details in public commits, branches, or channels.

Limitations
  • Results are for the SkillzBench reference agent on GLM-5.3-flash. Switch models above — a skill can help one model and not another.
  • Screen tier (1 trial per arm) is directional. Verified needs a full-tier run (≥ 8 tasks, ≥ 3 trials per arm) with the CI excluding zero.
  • Task coverage: 8 generated tasks for this skill's category; a skill can shine elsewhere.