Skip to content

Add no-key live WordPress vulnerability lookup#365

Merged
peaktwilight merged 1 commit into
mainfrom
feat/wp-live-vuln-lookup
May 17, 2026
Merged

Add no-key live WordPress vulnerability lookup#365
peaktwilight merged 1 commit into
mainfrom
feat/wp-live-vuln-lookup

Conversation

@peaktwilight
Copy link
Copy Markdown
Collaborator

Summary

  • query WPVulnerability's no-key plugin/theme API from wp_fingerprint by slug
  • filter live feed entries against detected installed versions before reporting
  • keep WPScan API as optional token-backed enrichment, merged after local + WPVulnerability data
  • document the no-key freshness path and optional WPScan token

Verification

  • pnpm --filter @pwnkit/core test -- src/agent/wp-fingerprint.test.ts src/agent/wp-vuln-db.test.ts src/agent/tools.test.ts
  • pnpm --filter @pwnkit/core build
  • live WPVulnerability smoke for contact-form-7@5.3.1
  • pnpm lint
  • pnpm build
  • pnpm test
  • git diff --check

Fresh WordPress plugin advisories should not depend on a paid or preconfigured scanner token. The WordPress fingerprinter now queries WPVulnerability's no-key JSON API by plugin/theme slug, filters entries against the detected installed version, and merges those findings with the local catalog, optional WPScan API data, and OSV.

Constraint: Keep the scanner policy-safe; structured advisory lookup is not generic scanner traffic.

Constraint: WPScan still requires a token, so it remains optional instead of the default freshness path.

Rejected: Web-search every plugin during the scan | higher latency and higher hallucination risk than structured feeds.

Rejected: Require WPSCAN_API_TOKEN for fresh data | unnecessary because WPVulnerability exposes a no-key API.

Confidence: high

Scope-risk: moderate

Directive: Prefer structured vulnerability feeds before web-search based enrichment; do not fabricate CVE ids from provider-internal hashes.

Tested: pnpm --filter @pwnkit/core test -- src/agent/wp-fingerprint.test.ts src/agent/wp-vuln-db.test.ts src/agent/tools.test.ts

Tested: pnpm --filter @pwnkit/core build

Tested: live WPVulnerability smoke for contact-form-7@5.3.1

Tested: pnpm lint

Tested: pnpm build

Tested: pnpm test

Tested: git diff --check
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 17, 2026

Warning

Rate limit exceeded

@peaktwilight has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 22 minutes and 45 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7aec9792-65e3-46c3-9e77-61b8fa7d4512

📥 Commits

Reviewing files that changed from the base of the PR and between b756dd3 and bff6c5d.

📒 Files selected for processing (5)
  • docs/src/content/docs/recipes.md
  • packages/core/README.md
  • packages/core/src/agent/tools.ts
  • packages/core/src/agent/wp-fingerprint.test.ts
  • packages/core/src/agent/wp-fingerprint.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/wp-live-vuln-lookup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@peaktwilight peaktwilight merged commit 5861f0c into main May 17, 2026
21 checks passed
@peaktwilight peaktwilight deleted the feat/wp-live-vuln-lookup branch May 17, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant