Hi @Dev Parmar
The behavior you're observing with the Microsoft Defender External Attack Surface Management (EASM) API's assets endpoint is due to the design of the responseType parameter.
The EASM API's assets endpoint supports multiple responseType values, each determining the amount of data included in the response:
For your reference: assetresponsetype
When you use responseType=reduced, the API returns a limited subset of asset properties. This subset may not include detailed vulnerability information, such as associated CVE IDs. As a result, even if an asset is affected by a specific CVE, that information might not be present in the reduced response.
On the other hand, responseType=standard includes more comprehensive asset details, which typically encompass vulnerability data, including CVE associations. Therefore, filtering by a specific CVE ID and using responseType=standard is more likely to return the expected data.
To ensure that your filtered queries by CVE ID return complete and accurate information Use responseType=standard or responseType=full. These response types include detailed vulnerability information, making them suitable for CVE-based filtering.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.