deal-with-security-advisory
Coordinates confidential GitHub Security Advisory handling, including private-fork fixes, CVE requests, and simultaneous publication with an immediate security release.
Pass rate with the skill minus without, same tasks, same model.
- 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
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 →
[](https://skillzbench.com/skills/deal-with-security-advisory)[](https://skillzbench.com/skills/deal-with-security-advisory)<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
Triage & Remediation Plan — GHSA-7v4p-8h3m-9q2r (Paperclip SQL injection)
Step 1: Validate the report (first thing to do)
- Reproduce privately. In a local/staging environment, send crafted
qpayloads (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. - Inspect the code. Locate the search handler; look for string interpolation/formatting into a query vs. parameterized queries or an ORM
whereclause. Check whether any sanitization/allow-listing exists. - 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.
- 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).
- Check for active exploitation in logs (odd
qvalues, 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
qsupports 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)
- In the repo's Security tab → Advisories, create a draft security advisory (this auto-enables private fork access for the fix).
- Collaborate with maintainers/reporter in the private fork — develop, test, and CI the fix without public visibility.
- 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). - Request a CVE from the draft advisory if one isn't already assigned.
Step 5: Coordinated disclosure
- Agree on a publish date with the reporter.
- 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).
- Post release notes/changelog entry; credit the reporter.
- 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.
Here's the triage and roadmap, following our security advisory process:
First steps (do now)
-
Fetch the full advisory details to understand the exact attack vector before touching code:
gh api repos/paperclipai/paperclip/security-advisories/GHSA-7v4p-8h3m-9q2rRead the description, CVSS, and affected versions. Confirm the
qparameter concatenation claim against the actual search endpoint code. -
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), branchsecurity-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:
-
GitHub is a CNA; assignment is automatic (may take a few hours to propagate).gh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-7v4p-8h3m-9q2r/cve
Phase 5 — Simultaneous publication (zero-gap, do not stagger):
- Verify reporter credit (
creditsfield); add them asreportertype if missing. - 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. - Immediately cut release
v1.4.2on 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
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
- 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.
- Update the version constant/metadata file (e.g.,
- 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 (<), 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)
- Draft the GHSA advisory in the GitHub Security Advisory (private, via "Security advisories" on the repo) — private forks and private advisories keep it embargoed.
- 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).
- Request a CVE ID through the GHSA flow (GitHub is a CNA) if one hasn't been assigned.
- 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:
- Freeze the embargo window. Agree with the reporter on a disclosure date (commonly 90 days from report, or sooner if actively exploited).
- Merge the fix into the private fork and prepare the release artifact.
- 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.
- Then publish details: full advisory text, CVE, blog post, social/mailing list.
- 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.
- 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.2before 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.xpatch 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.
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:
-
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. -
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 -
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
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-uploadandfix/auth-bypass-sessionprivate — 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:
- Freeze the fix commits on the two private branches; get them reviewed now.
- Backport to 1.6.x first (closest to mainline, least conflict risk): cherry-pick each fix onto
1-6-stable, verify tests. - Backport to 1.5.x, resolving conflicts introduced by API drift.
- Backport to 1.4.x last — expect the most divergence (older upload/session APIs); budget the most review time here.
- 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). - 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.
- Advisory text with CVE, affected range
- 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:
- Push patched commits and tags to the public repo.
- Publish the GitHub Security Advisory (this publishes the CVE simultaneously and credits the GHSA).
- 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.
- Update the changelog/release notes linking the advisory.
- 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?
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
- Fetch the advisory to confirm scope, severity, and CVSS for both vectors:
gh api repos/paperclipai/paperclip/security-advisories/GHSA-m3p2-8q7w-6v4r - Acknowledge the reporter (human step — post on the private advisory thread) with the acknowledgment template, targeting release within 7 days.
- Create the temporary private fork (if not already done):
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 likegh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-m3p2-8q7w-6v4r/forkssecurity-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:
- 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.
- Create backport branches off each affected release line:
security-fix-1.5← cherry-pick both fixes onto1.5.xsecurity-fix-1.4← cherry-pick both fixes onto1.4.x- Backports may need adaptation (API/dependency differences) — re-run tests per branch. Keep each patch minimal; no unrelated changes, no new dependencies.
- 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
- Invite the reporter to review the fixes in the private fork (human step, template in the advisory thread).
- Request the CVE now, not at publication:
Requesting early avoids CVE propagation lag after publication. The CVE ID stays private until the advisory publishes — this does not break the embargo.gh api --method POST repos/paperclipai/paperclip/security-advisories/GHSA-m3p2-8q7w-6v4r/cve - 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:
- Verify reporter credit on the advisory (
creditsfield; PATCH to add if missing). - Publish the advisory with both vulnerability entries in one PATCH:
(Adjust ranges/patched versions to your actual release numbers; you may list two entries — one per component — if they warrant separate CVSS scoring.){ "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"} ] } - 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.
- 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
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-emergencyis 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 likefix/pdf-rce-emergencyis 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.3in 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)
- Merge
fix/pdf-rce-emergency→ main on the private fork. - 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.
- Push tag + release
2.0.3to the public repo and package registry (npm/PyPI/etc.) in the same window. - Publish the changelog, legal statement, and mitigation guidance (blog post / GitHub release notes / mailing list).
- Notify the reporter privately ~24h ahead with the exact publication time so they can prepare their own writeup.
- 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.
Here's the fastest safe path, following the advisory-response workflow. Everything below stays confidential until publication.
Phase 1 — Now (confidential)
- 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.
- Verify the private fork state. If the fix already lives on
fix/pdf-rce-emergencyin 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). - Keep everything generic: no branch names, commit messages, or PR titles that mention PDF/RCE. Use
security-fixand "Fix security vulnerability" if you need to re-commit or rebase. - 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 - 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)
- 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.
- 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 - 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)
- Publish the advisory with the patched version range in a single PATCH:
This simultaneously 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-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 - 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>" - 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
- Verify:
CVE may take a few hours to appear — that's normal.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 - 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
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:
| Factor | Assessment |
|---|---|
| Attack vector | Network, low complexity — attacker controls the upload filename |
| Privileges required | Low — any user who can upload an attachment |
| User interaction | Required — a victim must view a page rendering the filename |
| Scope | Changed — XSS executes in the app's origin, enabling session theft, CSRF bypass, keylogging |
| PoC available | Yes — external researcher, so exploitation is likely to be reproduced publicly |
| Affected range | 6.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
-
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.
-
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.
-
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.
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
- 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. - 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. - 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.
- 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.