# What is a UUPS proxy in smart contracts?

URL: https://shield.quillaudits.com/learn/glossary/uups-proxy/

A UUPS proxy, from the Universal Upgradeable Proxy Standard, is a proxy with no upgrade logic of its own: the function that changes the implementation address lives in the implementation contract and runs through the proxy like any other call. That keeps the proxy small and cheaper to deploy than a transparent proxy, but it makes every implementation responsible for its own upgrade path ([OpenZeppelin](https://docs.openzeppelin.com/contracts/api/proxy)).

Last updated 3 December 2026. 2 minute read. By the QuillAudits Team.

## How does a UUPS upgrade work?

The proxy delegates the upgrade call to the current implementation, which checks the caller and writes the new address into the ERC-1967 slot of the proxy. In OpenZeppelin `UUPSUpgradeable`, the check is `_authorizeUpgrade`, which each contract must override with its own restriction, and `proxiableUUID` lets an upgrade refuse an implementation that isn't UUPS-compatible ([OpenZeppelin](https://docs.openzeppelin.com/contracts/api/proxy)).

**An implementation that carries, guards and locks its own upgrade path (illustrative, not audited code)** `VaultV1.sol`

```
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

contract VaultV1 {
    // ERC-1967 implementation slot, written in proxy storage during an upgrade.
    bytes32 internal constant IMPLEMENTATION_SLOT =
        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    address public owner;
    bool private initialized;

    constructor() {
        initialized = true; // locks this copy; only proxies get initialized
    }

    function initialize(address owner_) external {
        require(!initialized, "already initialized");
        initialized = true;
        owner = owner_;
    }

    function upgradeTo(address newImplementation) external {
        require(msg.sender == owner, "not owner"); // without this, anyone can replace the code
        require(newImplementation.code.length > 0, "not a contract");
        assembly { sstore(IMPLEMENTATION_SLOT, newImplementation) }
    }
}
```

## What can go wrong with UUPS?

- **A weak check.** An upgrade function anyone can reach hands the whole contract to its caller.
- **An upgrade that drops the function.** EIP-1822 warns that an implementation missing the upgrade functions can block future upgrades and leave the proxy unusable ([EIP-1822](https://eips.ethereum.org/EIPS/eip-1822)).
- **An uninitialized implementation.** Whoever initializes it owns its upgrade function. Lock it in the constructor, as above, or with the OpenZeppelin `_disableInitializers` function.

Compared with a [transparent proxy](https://shield.quillaudits.com/learn/glossary/transparent-proxy/), UUPS can also drop upgradeability later by moving to an implementation without the function ([OpenZeppelin](https://docs.openzeppelin.com/contracts/api/proxy)).

## Sources

- [Proxies API, OpenZeppelin docs](https://docs.openzeppelin.com/contracts/api/proxy) · checked 3 December 2026
- [ERC-1822: Universal Upgradeable Proxy Standard (UUPS), Ethereum Improvement Proposals](https://eips.ethereum.org/EIPS/eip-1822) · checked 3 December 2026
