---
title: "rss: RSS feed image validation in Rust | VulCode"
description: "In the Rust rss crate we fixed feed image validation, which rejected heights above 144 pixels even though the RSS 2.0 spec allows up to 400."
url: "https://vulcode.com/en/opensource/contributions/rust-rss"
lang: "en"
---

[All contributions](https://vulcode.com/en/opensource/contributions)

rust-syndication/rss

# rust-syndication/rss

A Rust library for reading, writing and validating RSS feeds.

[See the repository](https://github.com/rust-syndication/rss) [All contributions](https://vulcode.com/en/opensource/contributions)

- **Language**: Rust
- **GitHub stars**: 504
- **Merged changes**: 1
- **Project site**: [crates.io](https://crates.io/crates/rss)

## What we changed

Feed image validation accepts heights up to 400 pixels, the maximum the RSS 2.0 spec allows, instead of the 144 limit copied from the width.

### What this work shows

- RSS 2.0 specification

- Data validation in Rust

- Feature-gated tests in Cargo

What was broken

### A 200 pixel height was an error

Image validation checked the height against the range 0 to 144, copied from the width. The RSS 2.0 specification allows a width up to 144 but a height up to 400, so a valid image with a height of 200 was reported as invalid.

How we fixed it

### A height limit that matches the spec

The height is now checked against 0 to 400, with a corrected error message, and the width stays at 144. A regression test accepts a height of 400 and rejects 401.

[#194](https://github.com/rust-syndication/rss/pull/194)

## Merged change 1

- [#194 Fix image height validation to allow the spec maximum of 400 Merged 5 September 2026](https://github.com/rust-syndication/rss/pull/194)

## What it taught us

When validating data we check every limit against the spec, not against the neighbouring field: here the image height had a limit copied from the width, so valid RSS feeds were rejected.

[More about this technology: Rust](https://vulcode.com/en/technologies/rust)

## Other projects we write code for

- [**Zed** Rust · 95,562 stars A fast code editor in Rust from the creators of Atom and Tree-sitter, with live multiplayer editing.](https://vulcode.com/en/opensource/contributions/zed)

- [**uv** Rust · 92,647 stars An extremely fast Python package and project manager written in Rust. It creates projects, installs dependencies and manages virtual environments.](https://vulcode.com/en/opensource/contributions/uv)

- [**ripgrep** Rust · 70,186 stars A command line tool that recursively searches directories for a regex pattern while respecting your .gitignore. Written in Rust.](https://vulcode.com/en/opensource/contributions/ripgrep)

- [**Alacritty** Rust · 66,271 stars A cross-platform terminal emulator rendered with OpenGL, written in Rust and configured with a TOML file.](https://vulcode.com/en/opensource/contributions/alacritty)

- [**Gleam** Rust · 22,083 stars A friendly programming language for building type-safe, scalable systems. Its compiler is written in Rust.](https://vulcode.com/en/opensource/contributions/gleam)

- [**Sonic** Rust · 21,387 stars A lightweight full-text search backend in Rust, an alternative to Elasticsearch that runs in a few megabytes of RAM.](https://vulcode.com/en/opensource/contributions/sonic)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)
