# Resolving missing httpOnly flag dtcookie vulnerability

**URL:** <https://community.dynatrace.com/t/resolving-missing-httponly-flag-dtcookie-vulnerability/40516>\
**Category:** Troubleshooting\
**Tags:** data-privacy-and-product-security\
**Created:** [July 5, 2023, 7:54am UTC](https://community.dynatrace.com/t/resolving-missing-httponly-flag-dtcookie-vulnerability/40516 "2023-07-05T07:54:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanie\_pachne](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefanie_pachne/32/34814_2.png) [@stefanie\_pachne](https://community.dynatrace.com/u/stefanie_pachne)\
**Post date:** [July 5, 2023, 7:54am UTC](https://community.dynatrace.com/t/resolving-missing-httponly-flag-dtcookie-vulnerability/40516/1 "2023-07-05T07:54:27Z")

</div>

## Self Service Summary

Security Team is reporting “missing httpOnly flag for dtCookie” or “Dynatrace cookies are vulnerable because httpOnly attribute is not set”.

| Issue | Solution | Tasks | Alternative(s) |
| --- | --- | --- | --- |
| httpOnly flag not set on dtCoockie | Explain why httpOnly is not supported - see below. | Check below information and explain it to your Security Team | Dynatrace supports the Secure cookie attribute - see below.Submit a Support ticket if you have additional questions or concerns. |

RUM correlation requires the&nbsp;`dtCookie`&nbsp;and&nbsp;`dtPC`&nbsp;cookies to be on web requests in order to link them to user actions. However, because&nbsp;`dtCookie`&nbsp;is part of the beacon and because the RUM JavaScript sets and modifies these cookies, they don’t support the&nbsp;`HttpOnly`&nbsp;flag. `HttpOnly`&nbsp;cookies are inaccessible to JavaScript, so the RUM JavaScript cannot set and modify such cookies. See&nbsp;[Cookies](https://www.dynatrace.com/support/help/manage/data-privacy-and-security/data-privacy/cookies)&nbsp;for complete details.

You can add the&nbsp;`Secure`&nbsp;cookie attribute to all Dynatrace cookies to ensure that browsers send these cookies only over secure connections.&nbsp;Before enabling the&nbsp;`Secure`&nbsp;cookie attribute, make sure that your application is completely served over secure connections. See [Secure cookies](https://docs.dynatrace.com/docs/manage/data-privacy-and-security/data-privacy/cookies#secure-cookies) for more information.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [July 7, 2023, 1:29pm UTC](https://community.dynatrace.com/t/resolving-missing-httponly-flag-dtcookie-vulnerability/40516/2 "2023-07-07T13:29:26Z")

</div>

[@stefanie\_pachne](https://community.dynatrace.com/user/28409)&nbsp;do we know what JS library version this applies to?

---

<div class="post-metadata">

**Author:** ![stefanie\_pachne](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefanie_pachne/32/34814_2.png) [@stefanie\_pachne](https://community.dynatrace.com/u/stefanie_pachne)\
**Post date:** [July 12, 2023, 8:00am UTC](https://community.dynatrace.com/t/resolving-missing-httponly-flag-dtcookie-vulnerability/40516/3 "2023-07-12T08:00:45Z")

</div>

[@ChadTurner](https://community.dynatrace.com/user/14877)&nbsp;this is a more general, typical scan result regarding Dynatracte cookies, independent of JS library versions.
