drupal-vulnerable-components

drupal-vulnerable-components is a cursor rule for Cursor from ivangrynenko/cursorrules. It costs 1,504 tokens per session, scanned A, original, MIT.

A set of checks for Drupal, a PHP-based content management system, that looks for outdated core versions, old functions, and vulnerable dependencies.

In plain words
What is it for?
It is for reviewing Drupal source and configuration files for outdated versions and deprecated code linked to security problems.
Why use it?
It helps spot known security risks caused by old Drupal components before they remain in an application.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for reviewing Drupal source and configuration files for outdated versions and deprecated code linked to security problems.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/ivangrynenko/cursorrules/drupal-vulnerable-components
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ivangrynenko/cursorrules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for drupal-vulnerable-components

README.md
[![agentmods](https://agentmods.dev/badge/rules/ivangrynenko/cursorrules/drupal-vulnerable-components/github.svg)](https://agentmods.dev/rules/ivangrynenko/cursorrules/drupal-vulnerable-components)
Your own site
<a href="https://agentmods.dev/rules/ivangrynenko/cursorrules/drupal-vulnerable-components"><img src="https://agentmods.dev/badge/rules/ivangrynenko/cursorrules/drupal-vulnerable-components/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for drupal-vulnerable-components

Your own site · 80×15
<a href="https://agentmods.dev/rules/ivangrynenko/cursorrules/drupal-vulnerable-components"><img src="https://agentmods.dev/badge/rules/ivangrynenko/cursorrules/drupal-vulnerable-components.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,504 This file is loaded in full into every session.
When invoked 1,504 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01504 $0.01504
Opus 5.5 $0.00602 $0.00602
Sonnet 5.5 $0.00301 $0.00301
Haiku 4.5 $0.00150 $0.00150

Measured 3mo ago against content hash 9eac9a098f71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

drupal-vulnerable-components scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/drupal-vulnerable-components.mdc · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Drupal Vulnerable and Outdated Components Standards (OWASP A06:2021)

This rule enforces security best practices to prevent vulnerabilities related to outdated or vulnerable components in Drupal applications, as defined in OWASP Top 10:2021-A06.

Rule Details

  • Name: drupal_vulnerable_components

  • Description: Detect and prevent vulnerabilities related to outdated or vulnerable components in Drupal as defined in OWASP Top 10:2021-A06

Filters

  • file extension pattern: \\.(php|inc|module|install|info\\.yml|json)$
  • file path pattern: .*

Enforcement Checks

  • Conditions:
    • pattern core:\\s*('|\")8\\.[0-6](mdc:'|\")|core_version_requirement:\\s*('|\")[^9].+('|\") – Potentially outdated Drupal core version detected. Consider upgrading to the latest secure version of Drupal 9 or 10.
      • Pattern 1: Outdated Drupal core version declaration
    • pattern drupal_set_message\\(|format_date\\(|drupal_render\\(|entity_load\\(|variable_get\\(|variable_set\\( – Deprecated function detected. Use modern replacements to ensure compatibility and security updates.
      • Pattern 2: Usage of deprecated functions
    • pattern jquery\\.min\\.js\\?v=1\\.|jquery-1\\.|jquery-2\\.|ckeditor/|tinymce/|angular\\.js@1\\. – Potentially vulnerable JavaScript library version detected. Update to the latest secure version.
      • Pattern 3: Known vulnerable libraries referenced
    • pattern <script\\s+src=['\"]http|<script\\s+src=['\"]//|<link\\s+[^>]*href=['\"]http – External scripts or stylesheets without Subresource Integrity (SRI) checks detected. Add integrity and crossorigin attributes.
      • Pattern 4: Direct inclusion of external scripts without SRI
    • pattern module:\\s*('[^']*captcha'|'recaptcha'|'xmlrpc'|'openid'|'php') – Potentially vulnerable or deprecated module detected. Consider using more secure alternatives.
      • Pattern 5: Use of obsolete or removed modules
    • pattern \"drupal/[^\"]+\":\\s*\"(~|\\^)?[0-9]\\.[0-9]\\.[0-9]\" – Hard-coded specific version detected in composer.json. Consider using version ranges to receive security updates.
      • Pattern 6: Hard-coded versions in composer.json
    • pattern mysql_|split\\(|ereg\\(|eregi\\(|create_function\\(|each\\( – Deprecated or insecure PHP function detected. Use modern alternatives for better security.
      • Pattern 7: Outdated or insecure PHP API usage
    • pattern type:\\s*module\\s*\\nname: – Ensure your module specifies core_version_requirement to prevent installation on unsupported Drupal versions.
      • Pattern 8: Usage of contrib modules without version constraints
    • pattern composer\\.json – Consider adding drupal/core-security-advisories as a dev dependency to detect known vulnerable packages.
      • Pattern 9: Missing security advisories handling in composer.json
    • pattern check_plain\\(|filter_xss\\(|filter_xss_admin\\( – Legacy text sanitization function detected. Use Html::escape() or Xss::filter() instead.
      • Pattern 10: Direct usage of vulnerable sanitization functions

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 103 lines · 1,504 tokens per session scan A 9eac9a098f71

Subscribe to this mod's changes

drupal-vulnerable-components is a cursor rule published in the GitHub repository ivangrynenko/cursorrules (88 stars, last pushed 1y ago), licensed MIT. It adds 1,504 tokens to every session, about $0.0060 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

drupal-vulnerable-components compared with cursor rules from other repositories

drupal-vulnerable-components next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
drupal-vulnerable-componentsivangrynenko/cursorrulesCursor rule881y agoMITA1,504Cursor
cross-tool-confignedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA24Cursor
angularnedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA988Cursor
djangonedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA1,072Cursor
vuenedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA866Cursor
gonedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA1,028Cursor
javanedcodes-ok/cursorrules-collectionCursor rule389mo agoMITA1,083Cursor