Attributes for Blocks Security & Risk Analysis

wordpress.org/plugins/attributes-for-blocks

Allows to add HTML attributes to Gutenberg blocks.

4K active installs v1.0.13 PHP 7.4+ WP 6.2+ Updated Dec 1, 2025
ariaattributesblocksgutenbergstyle
99
A · Safe
CVEs total1
Unpatched0
Last CVESep 3, 2024
Safety Verdict

Is Attributes for Blocks Safe to Use in 2026?

Generally Safe

Score 99/100

Attributes for Blocks has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Sep 3, 2024Updated 4mo ago
Risk Assessment

The static analysis of the "attributes-for-blocks" plugin v1.0.13 reveals a strong security posture in its current codebase. There are no identified attack vectors through AJAX handlers, REST API routes, shortcodes, or cron events, and crucially, none of these entry points are left unprotected. The code also demonstrates good practices by not using dangerous functions, all SQL queries are prepared, and all output is properly escaped. The absence of file operations and external HTTP requests further strengthens its security profile. The presence of a capability check is also a positive sign.

However, the plugin has a history of one known CVE, which was a medium-severity Cross-Site Scripting (XSS) vulnerability, last patched on September 3, 2024. While this specific version is not currently unpatched, the past existence of an XSS vulnerability warrants ongoing vigilance. The taint analysis showing zero flows with unsanitized paths is reassuring for the current version, but the past vulnerability suggests that input sanitization and output escaping, particularly for user-supplied data that might be rendered on the frontend, should remain a focus area.

In conclusion, the "attributes-for-blocks" plugin exhibits a good overall security foundation in its current release, with no apparent vulnerabilities in the analyzed attack surface or code signals. The past XSS vulnerability, though patched, is the primary point of caution, highlighting the importance of continuous security reviews and thorough testing for any user-facing output. The plugin's strengths lie in its limited attack surface and adherence to secure coding practices like prepared statements and output escaping.

Key Concerns

  • Past medium severity XSS vulnerability (CVE)
Vulnerabilities
1

Attributes for Blocks Security Vulnerabilities

CVEs by Year

1 CVE in 2024
2024
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2024-8318medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Attributes for Blocks <= 1.0.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via attributesForBlocks Parameter

Sep 3, 2024 Patched in 1.0.7 (1d)
Code Analysis
Analyzed Mar 16, 2026

Attributes for Blocks Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
0
0 escaped
Nonce Checks
0
Capability Checks
1
File Operations
0
External Requests
0
Bundled Libraries
0
Attack Surface

Attributes for Blocks Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 5
actionenqueue_block_editor_assetsattributes-for-blocks.php:71
filterregister_block_type_argsattributes-for-blocks.php:225
filterrender_blockattributes-for-blocks.php:252
filterpre_ksesattributes-for-blocks.php:301
filterplugin_row_metaattributes-for-blocks.php:318
Maintenance & Trust

Attributes for Blocks Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedDec 1, 2025
PHP min version7.4
Downloads40K

Community Trust

Rating100/100
Number of ratings21
Active installs4K
Developer Profile

Attributes for Blocks Developer Profile

ska-dev

4 plugins · 16K total installs

100
trust score
Avg Security Score
100/100
Avg Patch Time
1 days
View full developer profile
Detection Fingerprints

How We Detect Attributes for Blocks

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/attributes-for-blocks/build/style-index.css/wp-content/plugins/attributes-for-blocks/build/index.js
Script Paths
/wp-content/plugins/attributes-for-blocks/build/index.asset.php
Version Parameters
attributes-for-blocks?ver=plugins/attributes-for-blocks/build/style-index.css?ver=plugins/attributes-for-blocks/build/index.js?ver=

HTML / DOM Fingerprints

Data Attributes
attributesForBlocks
JS Globals
afbData
FAQ

Frequently Asked Questions about Attributes for Blocks