WooCommerce Gateway Affirm Security & Risk Analysis

wordpress.org/plugins/woocommerce-gateway-affirm

Affirm Payments for WooCommerce: Buy now, pay later for your business—but smarter. Increase conversions and AOV by offering shoppers flexible payment …

6K active installs v3.0.4 PHP 7.4+ WP 6.1+ Updated Sep 23, 2025
buy-now-pay-laterpaymentswoocommerce-extensions
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WooCommerce Gateway Affirm Safe to Use in 2026?

Generally Safe

Score 100/100

WooCommerce Gateway Affirm has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 6mo ago
Risk Assessment

The 'woocommerce-gateway-affirm' plugin version 3.0.4 exhibits a strong security posture based on the provided static analysis and vulnerability history. The plugin demonstrates excellent adherence to secure coding practices, with no dangerous functions identified, all SQL queries utilizing prepared statements, and a remarkably high percentage of properly escaped output. The absence of any file operations and a limited number of external HTTP requests further contribute to its secure design. Crucially, all identified entry points (AJAX handlers, cron events) appear to be protected by nonce and capability checks, and there are no unpatched vulnerabilities in its history. This indicates a proactive approach to security by the developers.

While the plugin scores very well, a minor area for consideration is the presence of external HTTP requests. Although not inherently a vulnerability, the number of requests (5) warrants a quick review to ensure they are all necessary and do not expose any sensitive data or introduce potential attack vectors. However, given the overall excellent security indicators, this is a low concern. The lack of any historical vulnerabilities, critical taint flows, or unescaped outputs suggests a mature and well-maintained codebase. The plugin's strengths lie in its robust input validation, output sanitization, and secure handling of database interactions, making it a generally safe choice for integration with WooCommerce.

Key Concerns

  • External HTTP requests detected
Vulnerabilities
None known

WooCommerce Gateway Affirm Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

WooCommerce Gateway Affirm Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
7
86 escaped
Nonce Checks
3
Capability Checks
1
File Operations
0
External Requests
5
Bundled Libraries
0

Output Escaping

92% escaped93 total outputs
Data Flows
All sanitized

Data Flow Analysis

3 flows
custom_bulk_admin_notices (class-woocommerce-gateway-affirm.php:539)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

WooCommerce Gateway Affirm Attack Surface

Entry Points1
Unprotected0

AJAX Handlers 1

authwp_ajax_wc_affirm_admin_order_captureclass-woocommerce-gateway-affirm.php:218
WordPress Hooks 35
actionplugins_loadedclass-woocommerce-gateway-affirm.php:92
actionaffirm_api_key_checkclass-woocommerce-gateway-affirm.php:98
actionwoocommerce_blocks_loadedclass-woocommerce-gateway-affirm.php:104
filterwoocommerce_order_actionsclass-woocommerce-gateway-affirm.php:110
actionwoocommerce_order_action_wc_affirm_capture_chargeclass-woocommerce-gateway-affirm.php:114
actionwoocommerce_order_status_pending_to_cancelledclass-woocommerce-gateway-affirm.php:118
actionwoocommerce_order_status_processing_to_cancelledclass-woocommerce-gateway-affirm.php:122
actionwoocommerce_order_status_completed_to_cancelledclass-woocommerce-gateway-affirm.php:126
actionadmin_footer-edit.phpclass-woocommerce-gateway-affirm.php:132
actionload-edit.phpclass-woocommerce-gateway-affirm.php:136
actionadmin_noticesclass-woocommerce-gateway-affirm.php:140
actionwp_headclass-woocommerce-gateway-affirm.php:146
actionwp_enqueue_scriptsclass-woocommerce-gateway-affirm.php:150
actionwoocommerce_after_shop_loop_itemclass-woocommerce-gateway-affirm.php:154
actionwoocommerce_single_product_summaryclass-woocommerce-gateway-affirm.php:159
actionwoocommerce_composite_add_to_cart_buttonclass-woocommerce-gateway-affirm.php:164
actionwoocommerce_after_add_to_cart_formclass-woocommerce-gateway-affirm.php:169
actionwoocommerce_cart_totals_after_order_totalclass-woocommerce-gateway-affirm.php:173
actionwoocommerce_thankyouclass-woocommerce-gateway-affirm.php:177
actionwoocommerce_before_checkout_formclass-woocommerce-gateway-affirm.php:183
actionwoocommerce_admin_order_totals_after_totalclass-woocommerce-gateway-affirm.php:189
actionwoocommerce_checkout_after_order_reviewclass-woocommerce-gateway-affirm.php:195
actionwc_ajax_wc_affirm_inline_checkoutclass-woocommerce-gateway-affirm.php:199
actionwoocommerce_order_item_add_action_buttonsclass-woocommerce-gateway-affirm.php:205
actionwoocommerce_admin_order_totals_after_totalclass-woocommerce-gateway-affirm.php:209
actionadmin_enqueue_scriptsclass-woocommerce-gateway-affirm.php:214
filterwoocommerce_payment_gatewaysclass-woocommerce-gateway-affirm.php:248
actionwoocommerce_blocks_payment_method_type_registrationclass-woocommerce-gateway-affirm.php:1572
actionwoocommerce_blocks_cart_block_registrationclass-woocommerce-gateway-affirm.php:1585
actionadmin_noticesincludes\class-wc-gateway-affirm.php:422
actionadmin_noticesincludes\class-wc-gateway-affirm.php:426
actionadmin_enqueue_scriptsincludes\class-wc-gateway-affirm.php:430
actionwoocommerce_review_order_before_paymentincludes\class-wc-gateway-affirm.php:450
actionwp_enqueue_scriptsincludes\class-wc-gateway-affirm.php:454
actionbefore_woocommerce_initwoocommerce-gateway-affirm.php:56

Scheduled Events 1

affirm_api_key_check
Maintenance & Trust

WooCommerce Gateway Affirm Maintenance & Trust

Maintenance Signals

WordPress version tested6.7.5
Last updatedSep 23, 2025
PHP min version7.4
Downloads61K

Community Trust

Rating0/100
Number of ratings0
Active installs6K
Developer Profile

WooCommerce Gateway Affirm Developer Profile

WooCommerce

36 plugins · 4.7M total installs

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

How We Detect WooCommerce Gateway Affirm

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/woocommerce-gateway-affirm/build/inline-checkout.js/wp-content/plugins/woocommerce-gateway-affirm/build/promo-widget.js/wp-content/plugins/woocommerce-gateway-affirm/build/checkout.js/wp-content/plugins/woocommerce-gateway-affirm/assets/css/admin/affirm-admin.css/wp-content/plugins/woocommerce-gateway-affirm/assets/js/admin/affirm-admin.js/wp-content/plugins/woocommerce-gateway-affirm/assets/js/frontend/affirm.js/wp-content/plugins/woocommerce-gateway-affirm/assets/js/frontend/affirm_cart.js/wp-content/plugins/woocommerce-gateway-affirm/assets/js/frontend/affirm_checkout.js
Script Paths
/wp-content/plugins/woocommerce-gateway-affirm/build/inline-checkout.js/wp-content/plugins/woocommerce-gateway-affirm/build/promo-widget.js/wp-content/plugins/woocommerce-gateway-affirm/build/checkout.js
Version Parameters
woocommerce-gateway-affirm/assets/css/admin/affirm-admin.css?ver=woocommerce-gateway-affirm/assets/js/admin/affirm-admin.js?ver=woocommerce-gateway-affirm/assets/js/frontend/affirm.js?ver=woocommerce-gateway-affirm/assets/js/frontend/affirm_cart.js?ver=woocommerce-gateway-affirm/assets/js/frontend/affirm_checkout.js?ver=woocommerce-gateway-affirm/build/inline-checkout.js?ver=woocommerce-gateway-affirm/build/promo-widget.js?ver=woocommerce-gateway-affirm/build/checkout.js?ver=

HTML / DOM Fingerprints

CSS Classes
affirm-promo-messageaffirm-as-low-asaffirm-checkout-buttonaffirm-cart-totalswc-affirm-capture-togglewc-affirm-partial-capture-amount
HTML Comments
<!-- START WC AFFIRM INLINE CHECKOUT --><!-- END WC AFFIRM INLINE CHECKOUT --><!-- START WC AFFIRM CUSTOM BULK ACTIONS --><!-- END WC AFFIRM CUSTOM BULK ACTIONS -->+8 more
Data Attributes
data-affirm-enableddata-affirm-checkout-urldata-affirm-inline-checkout-enabled
JS Globals
affirmAffirmwc_affirm_params
REST Endpoints
/wp-json/wc-affirm/v1/inline-checkout/wp-json/wc-affirm/v1/admin/capture
FAQ

Frequently Asked Questions about WooCommerce Gateway Affirm