{"answers":{"affected":"2 open source packages ship an affected version, including validator. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-12758 exists.","fix":"Upgrade validator to 13.15.22 or later.","what":"CVE-2025-12758 is a high-severity denial of service vulnerability in org.webjars.npm:validator, published on 27 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-12758 and fix it if it is affected.\n\nWhat it is: CVE-2025-12758 is a high-severity denial of service vulnerability in org.webjars.npm:validator, published on 27 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-12758 exists.\n\nAffected packages and fixed versions:\n- validator (npm): affected all versions; fixed in 13.15.22\n- validator (npm): affected all versions; fixed in 13.15.22\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-12758/ (Markdown: https://insights.sbomify.com/CVE-2025-12758/index.md)","id":"CVE-2025-12758","markdown":"https://insights.sbomify.com/CVE-2025-12758/index.md","name":"CVE-2025-12758","record":{"aliases":["CLSA-2026-1790175492","GHSA-vghf-hv5q-vc2g","MINI-4jcq-2hm2-3gxc","MINI-jv5q-pv59-w2fc","MINI-x33q-f99v-r4xw","ROOT-APP-NPM-CVE-2025-12758"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript validation library","requires_auth":"none","summary":"An attacker can bypass length validation using Unicode variation selectors, causing data truncation or denial of service in applications using the validator library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"validator","vendor":"validator_project"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-172","name":"Improper Encoding or Decoding of Data"},{"id":"CWE-792","name":"Incomplete Filtering of One or More Instances of Special Elements"}],"description":"Versions of the package validator before 13.15.22 are vulnerable to Incomplete Filtering of One or More Instances of Special Elements in the isLength() function that does not take into account Unicode variation selectors (\\uFE0F, \\uFE0E) appearing in a sequence which lead to improper string length calculation. This can lead to an application using isLength for input validation accepting strings significantly longer than intended, resulting in issues like data truncation in databases, buffer overflows in other system components, or denial-of-service.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-12-11","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-12-11T03:10:17Z","kind":"github_poc","ref":"https://github.com/open-flaw/CVE-2025-12758","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements","id":"CVE-2025-12758","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":2,"n_references":4,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2025-12759"},"packages":[{"ecosystem":"npm","fixed":["13.15.22"],"introduced":["0"],"last_affected":[],"package":"validator","purl":null,"source":"GHSA-vghf-hv5q-vc2g"},{"ecosystem":"npm","fixed":["13.15.22"],"introduced":["0"],"last_affected":[],"package":"validator","purl":"pkg:npm/validator","source":"GHSA-vghf-hv5q-vc2g"}],"prev":{"headline":"Path traversal in AXIS Camera Station Pro","id":"CVE-2025-12757"},"products":["org.webjars.npm:validator","validator"],"published":"2025-11-27","related":[{"cvss_score":6.1,"headline":"validator.js has a URL validation bypass vulnerability in its isURL function","id":"CVE-2025-56200","kev_date_added":null,"published":"2025-09-30"},{"cvss_score":5.3,"headline":"Inefficient Regular Expression Complexity in validatorjs/validator.js","id":"CVE-2021-3765","kev_date_added":null,"published":"2021-11-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-08","vendors":["n/a"]},"summary":"An attacker can bypass length validation using Unicode variation selectors, causing data truncation or denial of service in applications using the validator library.","url":"https://insights.sbomify.com/CVE-2025-12758/"}