Content Spoofing Vulnerability in AngularJS: Improper Sanitization of 'srcset' Attribute

angular.js Updated 02 Oct 2025

Summary

09/09/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-8372: Improper sanitization of the value of the 'srcset' attribute in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/www-community/att... Affects angular.js versions < 1.8.3-1+deb12u1~deb11u1. Fixed in 1.8.3-1+deb12u1~deb11u1. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

AngularJS is a widely-used JavaScript framework designed for building dynamic web applications. It allows developers to create single-page applications with a rich user experience. However, AngularJS has reached its End-of-Life status, meaning it will no longer receive updates or security patches. This vulnerability affects versions 1.3.0-rc.4 and greater, exposing applications to potential security risks.

Vulnerability Detail

The vulnerability arises from improper sanitization of the 'srcset' attribute in AngularJS, which allows attackers to bypass common image source restrictions. This can lead to content spoofing, where malicious content is displayed instead of intended images, potentially misleading users. The issue is significant as it can compromise the integrity of web applications, especially those relying on AngularJS for rendering dynamic content.

How To Fix

Minimum fixed version

1.8.3-1+deb12u1~deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade angular.js

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

Workaround

As a temporary workaround, consider implementing strict content security policies (CSP) to limit the sources from which images can be loaded. This may help mitigate the risk of content spoofing until a proper update can be applied.

Conclusion

The improper sanitization of the 'srcset' attribute in AngularJS poses a significant security risk, allowing for content spoofing. It is crucial for users of affected versions to update to the patched versions provided for their respective Debian systems to mitigate this vulnerability.

See every vulnerability recorded for angular.js →

Share this vulnerability

FAQ

The vulnerability is related to improper sanitization of the 'srcset' attribute in AngularJS, allowing for content spoofing.

AngularJS versions 1.3.0-rc.4 and greater are affected by this vulnerability.

Yes, patched versions are available for Debian systems. Users should update to the specified fixed versions.

Attackers can exploit this vulnerability to display misleading content, potentially harming users and compromising application integrity.

You can use Vulert, which monitors open-source vulnerabilities in real-time. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to access the code.

Related vulnerabilities

Recent vulnerabilities recorded for angular.js.

How To Fix

Minimum fixed version

1.8.3-1+deb12u1~deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade angular.js

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