CVE-2017-7204: imdbphp/imdbphp Cross-Site Scripting (XSS)

imdbphp/imdbphp Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
6.1

CVE-2017-7204: imdbphp Cross-Site Scripting (XSS). Affects imdbphp/imdbphp versions < 5.2.0. Fixed in 5.2.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

imdbphp is a package available on Packagist that provides a PHP interface for accessing the IMDb movie database. It allows developers to retrieve information about movies, TV shows, actors, and other related data from IMDb. The package is widely used in PHP applications that require IMDb data integration. However, a vulnerability has been discovered in version 5.1.1 of imdbphp that exposes it to Cross-Site Scripting (XSS) attacks.

Vulnerability Detail

The Cross-Site Scripting (XSS) vulnerability in imdbphp 5.1.1 is caused by inadequate filtering of user-supplied data (name) passed to the "imdbphp-master/demo/search.php" URL. This allows an attacker to inject arbitrary HTML and script code into the vulnerable website, which can then be executed in the context of a victim's browser. The impact of this vulnerability can range from unauthorized data disclosure to the execution of malicious actions on behalf of the user.

How To Fix

Minimum fixed version

5.2.0

This is the first release that contains the fix.

composer require imdbphp/imdbphp:5.2.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. However, developers can mitigate the risk by implementing proper input validation and output encoding when using imdbphp. This can help prevent the execution of malicious scripts injected through user-supplied data.

Conclusion

The imdbphp package is vulnerable to Cross-Site Scripting (XSS) attacks in version 5.1.1. It is crucial for developers to upgrade to a fixed version (5.2.0 or later) to mitigate the risk of exploitation. Proper input validation and output encoding should also be implemented to prevent XSS vulnerabilities in applications. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for imdbphp/imdbphp →

Share this vulnerability

FAQ

imdbphp is a PHP package that provides an interface for accessing the IMDb movie database. It allows developers to retrieve information about movies, TV shows, actors, and more.

Cross-Site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to unauthorized data disclosure, session hijacking, and other malicious activities.

The vulnerability in imdbphp allows an attacker to inject arbitrary HTML and script code into the vulnerable website by manipulating the 'name' parameter passed to the 'imdbphp-master/demo/search.php' URL. This code is then executed in the context of a victim's browser, potentially leading to various security risks.

Yes, the vulnerability has been fixed in version 5.2.0 of imdbphp and later. It is recommended to update to the latest version to ensure the security of your application.

To protect your application from XSS attacks, you should implement proper input validation and output encoding. This ensures that user-supplied data is properly sanitized before being displayed or processed.

How To Fix

Minimum fixed version

5.2.0

This is the first release that contains the fix.

composer require imdbphp/imdbphp:5.2.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback