Skip to content

Commit 99716bd

Browse files
fix(security): escape plugin-card author field
The wordpress.org API author field was echoed unescaped while every sibling field was escaped. Run it through wp_kses_post (preserves the intended anchor markup, strips scripts/handlers). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent c9742f1 commit 99716bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inc/render/class-plugin-card-block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function render( $attributes ) {
5656
</div>
5757
<div class="o-plugin-cards-info">
5858
<h4>' . esc_html( $results->name ) . '</h4>
59-
<h5>' . $results->author . '</h5>
59+
<h5>' . wp_kses_post( $results->author ) . '</h5>
6060
</div>
6161
<div class="o-plugin-cards-ratings">
6262
' . $this->get_ratings( $results->rating ) . '

0 commit comments

Comments
 (0)