bitwarden / bitwarden/android

[PM-29763] Application Crash During Autofill with Illegal Special Characters in URI

Open
#6,266 4 comments 0 reactions 0 assignees View on GitHub
app:password-manager bug
Dominant language
Kotlin
Stars
9.4k
Forks
1.1k
Avg merge
1d 14h
Merged PRs (30d)
67

Description

### Steps To Reproduce

1. Save a Login entry with illegal special characters in the URI field: `turn:198.51.100.1:5349[Password1234][]` (not `https://turn:198.51.100.1:5349[Password1234][]`).
2. Attempt to use the Android keyboard autofill feature on any site or application.
3. The autofill crashes and stops working for all sites and applications.

### Expected Result

The application should handle illegal characters gracefully, either by sanitising the input or by displaying an error message before saving the new Login entry, rather than crashing the autofill feature.

### Actual Result

The autofill crashes and becomes unusable across all sites and applications.

[flight_recorder_2025-12-10_12-03-22_anonymised.txt](https://github.com/user-attachments/files/24151059/flight_recorder_2025-12-10_12-03-22_anonymised.txt)

### Screenshots or Videos

Image

### Additional Context

Since the Android Native update (2024.10.1), the autofill feature no longer works when certain illegal special characters are present in the URI field of a Login entry. Even a single Login entry with such characters causes the autofill to crash entirely.

While users should avoid including special characters at the end of a port or in the URI, mistakes or intentional inputs can happen.

### Build Version

2025.11.1 (20994) - release/fdroid

### What server are you connecting to?

US

### Self-host Server Version

_No response_

### Environment Details

_No response_

### Issue Tracking Info

- [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.