Safe's integration with ERC-4337 account abstraction shifts transaction validation and execution through an external bundler layer, creating security boundaries that do not exist in the canonical multi-sig flow. When a Safe account operates via EntryPoint, the bundler is responsible for simulating UserOperation validity, enforcing paymaster data integrity, and ensuring that validation results are not spoofed. A malicious or compromised bundler can exploit gaps in this trust model to bypass Safe's signature checks, drain gas deposits, or replay operations across chains—even when the underlying Safe singleton and module logic remains sound.

ERC-4337 Bundler Integration Vulnerabilities Affecting Safe
Introduction
ERC-4337 bundler integration introduces a new class of trust assumptions and attack surfaces that directly affect Safe accounts operating through the EntryPoint.
The core vulnerability class stems from the separation between the validateUserOp execution context and the bundler's off-chain simulation environment. Bundlers are expected to enforce rules that the on-chain EntryPoint cannot fully verify, including paymaster sponsorship honesty, fee parameter consistency, and the prohibition of banned opcodes during validation. When a bundler fails to enforce these rules—or actively colludes with a paymaster—Safe accounts can approve UserOperations that appear legitimate in simulation but execute with altered state, drained deposit accounts, or replayed signatures. This is not a flaw in Safe's contract logic but a systemic trust assumption that integrators must explicitly model.
For teams deploying Safe-based account abstraction, bundler selection becomes a security-critical decision equivalent to choosing a sequencer or relayer. Integrators must assess whether their bundler enforces the full ERC-4337 validation ruleset, whether it has been audited for simulation-spoofing vectors, and whether their Safe deployment includes additional guard or module checks that constrain UserOperation execution independently of bundler behavior. Chainscore Labs provides bundler security assessments, Safe module review for ERC-4337 compatibility, and integration audits that map the exact trust boundaries introduced by each bundler architecture.
Quick Facts
A scan-friendly summary of the unique trust assumptions and failure modes introduced when Safe accounts interact with the ERC-4337 EntryPoint through third-party bundlers.
| Area | What changes | Who is affected | Action |
|---|---|---|---|
Validation Logic | Bundlers simulate UserOp validation off-chain. A malicious bundler can bypass Safe module or guard checks by returning a false simulation result. | Safe accounts using modules with off-chain-aware logic; wallet integrators | Verify bundler simulation integrity. Implement on-chain validation redundancy for critical security checks. |
Paymaster Data | A bundler can spoof paymaster return data, tricking the Safe into believing a gas payment was made when it was not, leading to a denial-of-service or fund extraction. | Safe accounts relying on third-party paymasters for gas abstraction | Use only audited paymaster contracts. Validate paymaster reputation and stake. Monitor for unexpected gas payment failures. |
UserOp Replay | A bundler can intentionally delay or re-submit a valid UserOp across multiple chains if the Safe's validation logic does not bind the operation to a specific EntryPoint or chain. | Cross-chain Safe deployments sharing owner sets | Ensure Safe module and guard logic incorporates chainId and EntryPoint address in the validation phase. Review for cross-chain replay paths. |
Mempool Visibility | Bundlers operate private mempools. A malicious or compromised bundler can selectively censor UserOps from specific Safe accounts. | DAOs and protocols with time-sensitive governance or treasury operations | Integrate with multiple bundlers for redundancy. Monitor for transaction inclusion delays and implement fallback relayers. |
Storage Context | A bundler's | Safe accounts using guards that reference | Audit guards for simulation-vs-execution state divergence. Avoid reliance on transient storage in security-critical validation paths. |
Fallback Handler | A bundler can craft a UserOp that triggers a Safe's fallback handler in an unexpected way, bypassing the standard multi-sig execution flow. | Safe accounts with custom fallback handlers | Review fallback handler logic for ERC-4337 execution paths. Restrict fallback handler permissions to the minimum required functionality. |
Trust Assumption | Integrating with a bundler adds a new trust assumption: that the bundler will faithfully simulate, not censor, and not exploit UserOp data. | Protocol architects and risk teams evaluating account abstraction | Model the bundler as a trusted entity in your threat model. Conduct a bundler-specific risk assessment before mainnet deployment. |
Technical Mechanism
How ERC-4337 bundler integration introduces new validation and execution trust assumptions that diverge from Safe's native multi-sig security model.
Safe accounts operating through ERC-4337 EntryPoint contracts delegate transaction validation to a fundamentally different flow than native Safe executions. In the standard Safe model, execTransaction validates signatures against the owner set and threshold directly within the Safe proxy. Under ERC-4337, the EntryPoint calls validateUserOp on the Safe account, which must return a validation result and cannot perform state changes that persist after the call. This separation between the validation phase and execution phase creates a class of vulnerabilities where a malicious bundler can manipulate the context between these two phases—altering paymasterAndData, callData, or gas parameters after validation succeeds but before execution begins.
The primary attack vectors specific to Safe's ERC-4337 integration include: validation logic bypass where a bundler modifies the UserOperation after validateUserOp returns successfully, causing execution to proceed with parameters the Safe's owners did not approve; paymaster data spoofing where a bundler substitutes a malicious paymaster that drains gas deposits or manipulates execution context; and UserOperation replay across chains or EntryPoint versions when the Safe's validation logic does not bind the operation to a specific chainId and entryPoint address. These vectors are distinct from native Safe replay attacks because the UserOperation hash is computed off-chain and its binding to chain state depends on the EntryPoint's replay protection, not Safe's internal nonce and domain separator logic.
The trust model shift is operationally significant: Safe's native security assumes only that n of m owners sign a specific payload. Under ERC-4337, the Safe account must additionally trust that the bundler will faithfully submit the exact UserOperation that was validated, that the paymaster will not revert or drain funds, and that the EntryPoint contract itself has no vulnerabilities. For teams deploying Safe-based account abstraction, this means bundler selection is a security decision, not just an infrastructure choice. Chainscore Labs recommends that integrators implement independent UserOperation simulation against the target EntryPoint before signing, verify that validation logic binds to chainId and entryPoint, and conduct a bundler trust assessment that models the worst-case behavior of a malicious bundler in their specific deployment architecture.
Affected Systems and Actors
Safe Account Operators
Organizations and multisig teams using Safe accounts through ERC-4337 bundlers are directly exposed to bundler-specific vulnerabilities. The primary risk is that a malicious or compromised bundler can manipulate UserOperation parameters before submission to the EntryPoint, including paymaster data, gas limits, and calldata.
Immediate actions:
- Verify that your front-end independently simulates and decodes the full
UserOperationcalldata before signing, not just the human-readable transaction summary. - Confirm that your integration pins a specific
EntryPointaddress and does not accept user-suppliedEntryPointcontracts. - Audit whether your paymaster selection logic can be spoofed by a bundler that substitutes a different
paymasterAndDatafield.
Operators managing high-value Safes should consider running their own bundler to eliminate external bundler trust assumptions entirely.
Implementation Impact and Mitigations
Actionable controls for teams operating Safe accounts through ERC-4337 bundlers, addressing validation bypasses, paymaster spoofing, and replay vectors specific to the EntryPoint integration.
Validate Bundler Security Posture Before Integration
Safe accounts operating through ERC-4337 introduce a new trust assumption: the bundler that submits UserOperations to the EntryPoint. A malicious or compromised bundler can reorder, delay, or drop UserOperations, and in certain configurations can manipulate paymaster data to extract unexpected fees. Teams should assess bundler reputation, slashing conditions, and operational history before routing high-value Safe transactions. For self-hosted bundlers, implement strict access controls and monitoring on the bundler's mempool and submission logic to detect anomalous behavior.
Audit Validation Logic for EntryPoint-Specific Bypasses
The ERC-4337 validation phase runs in a constrained context where certain opcodes are prohibited. Custom Safe modules or guards that execute during validation must be audited for compliance with these restrictions. A module that uses TIMESTAMP or BLOCKHASH during validation can be manipulated by a bundler to bypass security checks. Review all module code paths that execute in the validation phase against the EntryPoint's forbidden opcode list, and ensure that critical security checks occur in the execution phase where full EVM semantics apply.
Bind UserOperations to Chain and EntryPoint
UserOperations are not inherently chain-specific. A UserOperation signed for a Safe on one chain can be replayed on another chain if the EntryPoint address and chain ID are not bound into the signature. Safe's ERC-4337 module must include the EntryPoint address and chain ID in the signed digest. Verify that your deployment's signature scheme includes these domain separators, and audit any custom paymaster or signature aggregator integrations for cross-chain replay paths that could allow an attacker to execute a UserOperation on an unintended chain.
Implement Independent UserOperation Simulation
Do not rely solely on bundler-provided simulation results. A compromised bundler can return fabricated simulation output that hides malicious state changes. High-security Safe operations should simulate UserOperations against a local fork of the target chain using the canonical EntryPoint contract, verifying that the validation phase passes, the execution phase produces expected state transitions, and no unexpected delegatecall or storage modifications occur. Integrate simulation into your transaction approval workflow before signers commit their signatures.
Monitor Paymaster Data Integrity and Fee Extraction
Paymaster sponsorship introduces a vector where a malicious bundler or paymaster can inflate gas costs, manipulate exchange rates for ERC-20 fee payments, or front-run UserOperations to extract value. Safe deployments using paymasters should verify that the paymaster contract is verified, audited, and governed by a reputable entity. Monitor actual gas consumption versus paymaster-charged fees, and set explicit limits on paymaster data fields that control fee calculations to prevent unbounded extraction.
Plan for Bundler Failover and Censorship Resistance
A single bundler represents a central point of failure and censorship. If your Safe's ERC-4337 operations depend on one bundler, that bundler's downtime or malicious refusal to include UserOperations can freeze account activity. Architect your integration to submit UserOperations to multiple independent bundlers simultaneously, and monitor the mempool for inclusion. For time-critical operations, maintain the ability to fall back to a standard Safe transaction flow outside the ERC-4337 path to ensure execution liveness.
Risk Matrix
Risk assessment for Safe accounts operating through ERC-4337 bundlers, covering validation bypasses, paymaster spoofing, and UserOperation replay vectors specific to Safe's EntryPoint integration.
| Risk | Failure mode | Severity | Mitigation |
|---|---|---|---|
Validation logic bypass | Bundler simulates validation in incorrect context, approving UserOp that Safe's validateUserOp would reject on-chain | Critical | Verify bundler uses canonical EntryPoint at correct address with matching chainId; audit validation simulation path |
Paymaster data spoofing | Malicious bundler substitutes paymasterAndData field after signature, causing Safe to sponsor gas for unintended paymaster or drain fee tokens | High | Require paymaster to verify caller; implement paymaster signature binding UserOp hash to paymaster address |
UserOperation replay across chains | Bundler submits same signed UserOp on multiple chains where Safe shares owner set and EntryPoint, exploiting missing chainId binding | Critical | Ensure Safe factory >=v1.3.0 with chainId in domain separator; verify EntryPoint address differs per chain |
Bundler censorship of UserOperations | Bundler selectively delays or drops UserOps from specific Safe accounts, preventing time-critical execution | Medium | Use multiple bundlers with fallback logic; monitor mempool inclusion latency; consider self-bundling for critical ops |
Malicious bundler fee extraction | Bundler inflates gas estimates or manipulates maxPriorityFeePerGas to extract excess fees from Safe's gas payment | Medium | Set explicit gas limits and fee caps in UserOp; verify bundler reputation and fee history; use paymaster with fee validation |
EntryPoint upgrade incompatibility | New EntryPoint version changes validation rules or opcode pricing, breaking Safe's validateUserOp assumptions | High | Monitor EntryPoint upgrade proposals; test Safe module compatibility against new EntryPoint versions before activation |
Bundler front-running UserOp creation | Bundler observes pending UserOp in mempool and submits competing UserOp with higher priority fee to alter execution order | Medium | Use private mempool or trusted bundler for sensitive operations; design UserOps to be order-independent where possible |
Remediation and Verification Checklist
A structured checklist for operators, builders, and risk teams to verify that their Safe-based ERC-4337 deployments are resilient against known bundler integration vulnerabilities. Each item includes the specific check, its security rationale, and the signal that confirms readiness.
What to check: Confirm that the deployed Safe4337Module and SafeProxy contracts are compatible with the canonical EntryPoint contract version on each target chain. Cross-reference the EntryPoint address used in your bundler configuration against the audited Safe deployment registry.
Why it matters: Incompatible EntryPoint versions can cause validation logic mismatches, where the EntryPoint's expectations for validateUserOp return values or gas accounting differ from the module's implementation. This can lead to unexpected reverts or, worse, validation bypasses where a UserOperation is included without proper signature checks.
Readiness signal: The Safe4337Module address on each chain matches the canonical deployment for that EntryPoint version, and integration tests pass against a local fork of the target chain with the exact EntryPoint bytecode.
Canonical Resources
Use these resources to verify ERC-4337 behavior, Safe-specific integration assumptions, and bundler validation requirements before accepting UserOperations for Safe accounts.
Safe Security Review and Disclosure Channels
For suspected Safe-specific ERC-4337 vulnerabilities, teams should preserve transaction hashes, UserOperation calldata, EntryPoint addresses, bundler logs, paymaster responses, simulation traces, Safe module configuration, and chain identifiers before disclosure or remediation. Public documentation may lag coordinated security work, so affected operators should verify current guidance through Safe’s official channels and avoid publishing exploit details until patches, bundler filters, or integration changes are available.
Looking to build on a specific blockchain?
We build smart contracts, DeFi applications, wallets, tokenization platforms, and blockchain infrastructure across the major ecosystems teams choose today. That includes Ethereum, Arbitrum, Optimism, Polygon, Avalanche, Solana, Sui, Aptos, Hedera, Stellar, and NEAR, with support for additional EVM and non-EVM networks based on your product requirements.
EVM ecosystems
- Ethereum
- Arbitrum
- Optimism
- Polygon
- Avalanche
- Cronos

Non-EVM ecosystems
- Solana
- Sui
- Aptos
- Hedera
- Stellar
- NEAR
Additional ecosystems
- Polkadot
- Cosmos
- TON
- Cardano
- Algorand
- Tempo
Also available for Base, appchains, custom EVM networks, and cross-chain product architecture.
Frequently Asked Questions
Answers to the most common questions from teams operating Safe accounts through ERC-4337 bundlers, covering validation logic, paymaster trust, replay vectors, and operational hardening.
The bundler becomes an active intermediary in the transaction lifecycle. Unlike a standard EOA-signed transaction where the Safe's validation logic executes exactly as written, a bundler can choose to omit, reorder, or delay UserOperations. The critical risk is that the bundler controls the execution context in which validateUserOp runs. A malicious or compromised bundler can manipulate the validation environment to bypass signature checks, spoof paymaster data, or replay a UserOperation under different conditions. Teams must assess whether their Safe's validation logic is robust against a bundler that does not faithfully simulate the intended execution path.
Delivering blockchain solutions for 5+ years.
We have partnered with 50+ leading DeFi protocols, NFT ecosystems, and fintech innovators to build secure, scalable, and capital-efficient blockchain products.
Selected Partners & Clients
“I've been working with Chainscore Labs for last 3+ years, they've consistently delivered with strong ownership across multiple projects. The team is reliable and detail-oriented.”
How to get started?
If you're looking for blockchain integration, ChainScore Labs has 5+ years of experience helping teams build and integrate exchanges, wallets, smart contracts, tokenization solutions, and protocol-connected products, we can help you choose the right path, integrate securely, and get to production faster. Our team consists of experienced blockchain developers and architects who can help you with your blockchain integration needs.
Exploration & Strategy
Define your product goals and choose the right blockchain architecture for your use case.
Architecture & Design
Design the smart contracts, tokenomics, and security parameters of your system.
Development & Integration
Build and integrate with wallets, oracles, and front-end dApps for a seamless experience.
Security & Launch
Comprehensive audits followed by a risk-managed mainnet deployment to protect your users.
Discover our
blockchain development services.
We build production-grade blockchain solutions for top-tier projects across DeFi and Web3.
Need a blockchain engineering team?
Send the project context and we will respond with next steps, scope questions, and a practical path to delivery.


