> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Security Blast Radius

> Map how a pull request's changes connect to dependencies, downstream consumers, tests, and security-relevant paths in Change Stack.

export const OpenBetaBadge = ({tip = "This feature is currently in open beta. We are actively improving it based on your feedback. If you encounter any issues or have suggestions, please share them on our Discord community or visit the support page.", title = "Open Beta", cta = "Contact support", href = "/support", disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="badge-alert" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const GitLabBadge = ({tip = "This feature is available on GitLab.", title = "GitLab", cta, href, disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="gitlab" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const GitHubBadge = ({tip = "This feature is available on GitHub and GitHub Enterprise.", title = "GitHub", cta, href, disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="github" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const BitbucketBadge = ({tip = "This feature is available on Bitbucket.", title = "Bitbucket", cta, href, disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="bitbucket" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const AzureBadge = ({tip = "This feature is available on Azure DevOps.", title = "Azure", cta, href, disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="microsoft" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

<GitHubBadge /> <GitLabBadge tip="Security Agent is available on GitLab and self-hosted GitLab." /> <AzureBadge tip="Security Agent is available on Azure DevOps Services. Azure DevOps Server is not supported." /> <BitbucketBadge tip="Security Agent is available on Bitbucket Cloud." /> | <OpenBetaBadge tip="Security Agent is currently available in beta." />

Security Blast Radius helps you investigate what a pull request could affect beyond its changed lines. The graph places changed components alongside the dependencies they use, downstream consumers that may be affected, related tests, and supporting repository context. Every component and relationship links back to the code evidence CodeRabbit used to build the map.

Security Blast Radius is included with the [Security Agent](/security-agent) and is available through [Change Stack](/pr-reviews/change-stack). It complements the layer-by-layer diff without changing the pull request or posting a separate graph to the Git provider.

<Frame caption="Security Blast Radius maps changed components and the paths between them while keeping matched Security Architecture findings close at hand">
  <img src="https://mintcdn.com/coderabbit/5yEiTof5iWnVucY3/assets/images/security-blast-radius-overview.jpg?fit=max&auto=format&n=5yEiTof5iWnVucY3&q=85&s=db63cc152e7e6edaedd4d2ed48ad7e10" alt="Security Blast Radius in dark mode with the Security findings panel open and three changed component stacks connected in the graph" width="1170" height="890" data-path="assets/images/security-blast-radius-overview.jpg" />
</Frame>

<Info>
  You must have access to the pull request and have an active Security Agent subscription or trial to load its graph and supporting code.
</Info>

## What the graph shows

| Graph element       | What it means                                                                                                              |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Changed component   | A component, service, API, worker, configuration surface, or other code concept modified by the pull request               |
| Upstream dependency | Code or infrastructure that a changed component uses                                                                       |
| Downstream consumer | Code that depends on changed behavior and may be affected by it                                                            |
| Test coverage       | Related tests that exercise changed behavior or its surrounding path                                                       |
| Supporting context  | Repository evidence that helps explain the change without establishing a direct downstream impact                          |
| Relationship        | An evidence-backed connection such as a call, import, dependency, read, write, publish, subscription, or test relationship |

The summary above the graph counts changed, upstream, downstream, and potentially impacted components. CodeRabbit may combine closely related components into collapsed stacks to keep a large graph readable.

## Open Security Blast Radius

<Steps>
  <Step title="Open Change Stack">
    Open the pull request's **Review Change Stack →** link from the CodeRabbit walkthrough.
  </Step>

  <Step title="Select Security Blast Radius">
    In the left rail, select **Security Blast Radius**. If the graph is still being prepared, Change Stack shows its generation status.
  </Step>

  <Step title="Start from the changed components">
    Use the changed components at the center of the map as the starting point, then follow their upstream, downstream, test, and supporting relationships.
  </Step>
</Steps>

<Frame caption="Open Change Stack, then select Security Blast Radius from the rail">
  <img src="https://mintcdn.com/coderabbit/5yEiTof5iWnVucY3/assets/images/security-blast-radius-open-flow.png?fit=max&auto=format&n=5yEiTof5iWnVucY3&q=85&s=6e2c10e9cf289d304e410e04c81c4d3a" alt="Review Change Stack button leading to the selected Security Blast Radius entry in the Change Stack rail" width="780" height="180" data-path="assets/images/security-blast-radius-open-flow.png" />
</Frame>

## Explore the impact map

### Expand grouped components

Related components can appear as a collapsed stack. Select a collapsed stack to expand it, or use **Expand all** to reveal every available component. Collapse stacks again when you want to return to the higher-level paths.

<Frame caption="The expanded graph reveals two potentially impacted consumers outside the pull request diff, together with upstream dependencies and related context">
  <img src="https://mintcdn.com/coderabbit/5yEiTof5iWnVucY3/assets/images/security-blast-radius-expanded-impact.jpg?fit=max&auto=format&n=5yEiTof5iWnVucY3&q=85&s=e8b47641afd1131448cd578ce03502f7" alt="Expanded Security Blast Radius graph showing upstream dependencies, test coverage, supporting context, and two potentially impacted downstream consumers around the changed components" width="1339" height="1270" data-path="assets/images/security-blast-radius-expanded-impact.jpg" />
</Frame>

<Info>
  Components labeled **Potentially impacted** can be outside the pull request diff. CodeRabbit found repository evidence that connects them to the changed behavior, so they are useful places to inspect next. The label does not confirm a defect or guarantee runtime impact.
</Info>

### Inspect a component

Select a component to open its details. The panel explains why the component matters to the pull request and groups its evidence into changed snippets, impacted dependents, and other supporting ranges when applicable.

Each range includes its repository path, line location, summary, and available evidence labels. Select a range to inspect the source without leaving the graph.

### Inspect a relationship

Select a connection between two components to see the relationship type, confidence, summary, and supporting ranges. Relationship evidence separates the changed snippets that caused the connection from the impacted or supporting code on the other side.

<Info>
  A relationship means CodeRabbit found evidence connecting the two components for this review. It does not, by itself, mean the pull request contains a defect or vulnerability.
</Info>

### Return to the diff

When evidence comes from a changed range, use **Open in layer** to return to the Change Stack layer containing that code. This lets you move from the impact map to the exact diff and its range summary.

## Review Security Architecture findings

When [Security Architecture Review](/security-agent/architecture-review) findings match components in the graph, the toolbar shows a **Security** control and the number of matched findings.

* Select **Security** to highlight all components and paths associated with Security Architecture findings.
* Select an individual finding in the legend to focus on the components associated with that finding.
* Select a highlighted component to inspect the code ranges supporting the match.

<Frame caption="Selecting the high-severity F1 finding highlights its affected component path while de-emphasizing unrelated graph context">
  <img src="https://mintcdn.com/coderabbit/5yEiTof5iWnVucY3/assets/images/security-blast-radius-finding-path.jpg?fit=max&auto=format&n=5yEiTof5iWnVucY3&q=85&s=6d675b241811ba01d8d9d30331dc74d5" alt="Security Blast Radius with the high-severity F1 finding selected and its affected path highlighted across four components" width="1339" height="1270" data-path="assets/images/security-blast-radius-finding-path.jpg" />
</Frame>

Security highlighting maps existing findings onto the graph. Security Blast Radius does not create a vulnerability finding solely because two components are connected.

## Understand limited results

Security Blast Radius reports the evidence available for the reviewed snapshot instead of filling gaps with inferred relationships.

| State                               | Meaning                                                                                                        |
| ----------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| **Changed code structure**          | CodeRabbit found the changed structure but no supported impact path outside the pull request                   |
| **No material blast radius**        | The available evidence did not establish a larger material impact path beyond the changed ranges               |
| **Showing N of M graph candidates** | CodeRabbit capped lower-ranked code-graph candidates to keep the graph readable                                |
| **Generating**                      | The graph is still being prepared for this review                                                              |
| **Not available**                   | The repository, review, authentication state, or required review evidence does not currently support the graph |

<Warning>
  An absent component or relationship means it was not established by the evidence available to this review. It does not prove that no dependency or downstream impact exists.
</Warning>

## Keep the graph current

Security Blast Radius is tied to the commit analyzed by a CodeRabbit review. When new commits make the graph stale, Change Stack can show **Update graphs**. Use it to regenerate both Security Blast Radius and Architecture impact against the latest pull request commit.

You can continue using the existing graph while an update is prepared, but its evidence reflects the earlier reviewed snapshot until the new analysis finishes.

## How CodeRabbit builds the graph

CodeRabbit starts with the exact ranges represented in Change Stack, then adds selected repository context and code relationships discovered during the review. It builds the component and relationship structure from that evidence before generating reviewer-facing names and summaries.

The generated explanation can group related evidence and clarify what a relationship means, but it cannot add unsupported components, connections, or relationship directions. If the explanation cannot be generated or validated, Change Stack can fall back to the evidence-backed structure.

## Related Change Stack views

| View                  | Question it helps answer                                                           |
| --------------------- | ---------------------------------------------------------------------------------- |
| Layers                | In what order should I read the changed code?                                      |
| Security Blast Radius | What does this change connect to or potentially affect?                            |
| Architecture impact   | What higher-level system responsibilities and architectural relationships changed? |

## What's next

<CardGroup cols={1}>
  <Card title="Security Architecture Review" href="/security-agent/architecture-review" icon="shield-check" horizontal>
    Understand the architecture-level security assessment that supplies findings to the graph.
  </Card>

  <Card title="Change Stack" href="/pr-reviews/change-stack" icon="layers" horizontal>
    Review the complete Change Stack workflow, including cohorts, layers, comments, and coding tasks.
  </Card>

  <Card title="Security Agent" href="/security-agent" icon="shield-check" horizontal>
    Scan committed repository code for vulnerabilities, exposed secrets, and vulnerable dependencies.
  </Card>
</CardGroup>
